Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/httprepo.py @ 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 | 9141bebefe3e |
children | 25c0dee16ee0 |
comparison
equal
deleted
inserted
replaced
7206:a89aa3721114 | 7207:fe0a4ed4634f |
---|---|
378 return br | 378 return br |
379 except: | 379 except: |
380 raise util.UnexpectedOutput(_("unexpected response:"), d) | 380 raise util.UnexpectedOutput(_("unexpected response:"), d) |
381 | 381 |
382 def between(self, pairs): | 382 def between(self, pairs): |
383 n = "\n".join(["-".join(map(hex, p)) for p in pairs]) | 383 n = " ".join(["-".join(map(hex, p)) for p in pairs]) |
384 d = self.do_read("between", pairs=n) | 384 d = self.do_read("between", pairs=n) |
385 try: | 385 try: |
386 p = [ l and map(bin, l.split(" ")) or [] for l in d.splitlines() ] | 386 p = [ l and map(bin, l.split(" ")) or [] for l in d.splitlines() ] |
387 return p | 387 return p |
388 except: | 388 except: |