Mercurial > hg-stable
changeset 7207:fe0a4ed4634f
protocol/between: the protocol expects to have ' '-separated tuples
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Wed, 22 Oct 2008 21:41:57 +0200 |
parents | a89aa3721114 |
children | acb87c5b4aeb |
files | mercurial/httprepo.py mercurial/sshrepo.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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() ]