Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Tue Mar 22 07:37:56 2011 +0100 +++ b/mercurial/localrepo.py Tue Mar 22 07:38:32 2011 +0100 @@ -1905,6 +1905,10 @@ def listkeys(self, namespace): return pushkey.list(self, namespace) + def debugwireargs(self, one, two, three=None, four=None): + '''used to test argument passing over the wire''' + return "%s %s %s %s" % (one, two, three, four) + # used to avoid circular references so destructors work def aftertrans(files): renamefiles = [tuple(t) for t in files]