diff mercurial/localrepo.py @ 14048:58e58406ed19

wireproto: add test for new optional arg missing on server New argument is silently ignored by both HTTP and SSH servers. This means we can, for instance, add new flags to getbundle() to request advanced features (like lightweight-copy-aware bundles), and older servers will silently ignore this request and send back a plain bundle.
author Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
date Fri, 29 Apr 2011 14:54:01 +0200
parents 90d997a812dc
children bcfe78c3d15c
line wrap: on
line diff
--- a/mercurial/localrepo.py	Sat Apr 30 02:42:05 2011 -0500
+++ b/mercurial/localrepo.py	Fri Apr 29 14:54:01 2011 +0200
@@ -1921,9 +1921,9 @@
     def listkeys(self, namespace):
         return pushkey.list(self, namespace)
 
-    def debugwireargs(self, one, two, three=None, four=None):
+    def debugwireargs(self, one, two, three=None, four=None, five=None):
         '''used to test argument passing over the wire'''
-        return "%s %s %s %s" % (one, two, three, four)
+        return "%s %s %s %s %s" % (one, two, three, four, five)
 
 # used to avoid circular references so destructors work
 def aftertrans(files):