protocol/between: the protocol expects to have ' '-separated tuples
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Wed, 22 Oct 2008 21:41:57 +0200
changeset 7207 fe0a4ed4634f
parent 7206 a89aa3721114
child 7208 acb87c5b4aeb
protocol/between: the protocol expects to have ' '-separated tuples
mercurial/httprepo.py
mercurial/sshrepo.py
--- a/mercurial/httprepo.py	Wed Oct 22 21:39:56 2008 +0200
+++ b/mercurial/httprepo.py	Wed Oct 22 21:41:57 2008 +0200
@@ -380,7 +380,7 @@
             raise util.UnexpectedOutput(_("unexpected response:"), d)
 
     def between(self, pairs):
-        n = "\n".join(["-".join(map(hex, p)) for p in pairs])
+        n = " ".join(["-".join(map(hex, p)) for p in pairs])
         d = self.do_read("between", pairs=n)
         try:
             p = [ l and map(bin, l.split(" ")) or [] for l in d.splitlines() ]
--- a/mercurial/sshrepo.py	Wed Oct 22 21:39:56 2008 +0200
+++ b/mercurial/sshrepo.py	Wed Oct 22 21:41:57 2008 +0200
@@ -176,7 +176,7 @@
             self.raise_(util.UnexpectedOutput(_("unexpected response:"), d))
 
     def between(self, pairs):
-        n = "\n".join(["-".join(map(hex, p)) for p in pairs])
+        n = " ".join(["-".join(map(hex, p)) for p in pairs])
         d = self.call("between", pairs=n)
         try:
             p = [ l and map(bin, l.split(" ")) or [] for l in d.splitlines() ]