mercurial/treediscovery.py
branchstable
changeset 49405 f64f66167afc
parent 49402 236702592ff0
equal deleted inserted replaced
49404:c6aac50038bb 49405:f64f66167afc
   116                         r.append(p)
   116                         r.append(p)
   117                         req.add(p)
   117                         req.add(p)
   118             seen.add(n[0])
   118             seen.add(n[0])
   119 
   119 
   120         if r:
   120         if r:
   121             reqcnt += 1
       
   122             progress.increment()
       
   123             repo.ui.debug(
       
   124                 b"request %d: %s\n" % (reqcnt, b" ".join(map(short, r)))
       
   125             )
       
   126             for p in range(0, len(r), 10):
   121             for p in range(0, len(r), 10):
       
   122                 reqcnt += 1
       
   123                 progress.increment()
       
   124                 if repo.ui.debugflag:
       
   125                     msg = b"request %d: %s\n"
       
   126                     msg %= (reqcnt, b" ".join(map(short, r)))
       
   127                     repo.ui.debug(msg)
   127                 with remote.commandexecutor() as e:
   128                 with remote.commandexecutor() as e:
   128                     subset = r[p : p + 10]
   129                     subset = r[p : p + 10]
   129                     if audit is not None:
   130                     if audit is not None:
   130                         audit[b'total-queries'] += len(subset)
   131                         audit[b'total-queries'] += len(subset)
   131                         audit[b'total-queries-branches'] += len(subset)
   132                         audit[b'total-queries-branches'] += len(subset)