mercurial/wireprotov1peer.py
changeset 38823 e7aa113b14f7
parent 38337 aa9dd805234d
child 39604 f15a587d2dfc
equal deleted inserted replaced
38822:7eba8f83129b 38823:e7aa113b14f7
   495             self._abort(error.ResponseError(_("unexpected response:"), d))
   495             self._abort(error.ResponseError(_("unexpected response:"), d))
   496 
   496 
   497     def between(self, pairs):
   497     def between(self, pairs):
   498         batch = 8 # avoid giant requests
   498         batch = 8 # avoid giant requests
   499         r = []
   499         r = []
   500         for i in xrange(0, len(pairs), batch):
   500         for i in pycompat.xrange(0, len(pairs), batch):
   501             n = " ".join([wireprototypes.encodelist(p, '-')
   501             n = " ".join([wireprototypes.encodelist(p, '-')
   502                           for p in pairs[i:i + batch]])
   502                           for p in pairs[i:i + batch]])
   503             d = self._call("between", pairs=n)
   503             d = self._call("between", pairs=n)
   504             try:
   504             try:
   505                 r.extend(l and wireprototypes.decodelist(l) or []
   505                 r.extend(l and wireprototypes.decodelist(l) or []