comparison mercurial/localrepo.py @ 13720:9c4e04fe267e

debug: add debugwireargs to test argument passing over the wire Tests argument passing locally, via HTTP, and via SSH. This is mainly preparation for the next patch.
author Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
date Tue, 22 Mar 2011 07:38:32 +0100
parents 6d7338f5320a
children e615765fdcc7
comparison
equal deleted inserted replaced
13719:cc9bf81382f5 13720:9c4e04fe267e
1903 return pushkey.push(self, namespace, key, old, new) 1903 return pushkey.push(self, namespace, key, old, new)
1904 1904
1905 def listkeys(self, namespace): 1905 def listkeys(self, namespace):
1906 return pushkey.list(self, namespace) 1906 return pushkey.list(self, namespace)
1907 1907
1908 def debugwireargs(self, one, two, three=None, four=None):
1909 '''used to test argument passing over the wire'''
1910 return "%s %s %s %s" % (one, two, three, four)
1911
1908 # used to avoid circular references so destructors work 1912 # used to avoid circular references so destructors work
1909 def aftertrans(files): 1913 def aftertrans(files):
1910 renamefiles = [tuple(t) for t in files] 1914 renamefiles = [tuple(t) for t in files]
1911 def a(): 1915 def a():
1912 for src, dest in renamefiles: 1916 for src, dest in renamefiles: