mercurial/treediscovery.py
changeset 38783 e7aa113b14f7
parent 38400 2f5c622fcb73
child 43076 2372284d9457
--- a/mercurial/treediscovery.py	Wed Aug 01 12:57:15 2018 -0700
+++ b/mercurial/treediscovery.py	Wed Aug 01 13:00:45 2018 -0700
@@ -16,6 +16,7 @@
 )
 from . import (
     error,
+    pycompat,
 )
 
 def findcommonincoming(repo, remote, heads=None, force=False):
@@ -111,7 +112,7 @@
             progress.increment()
             repo.ui.debug("request %d: %s\n" %
                         (reqcnt, " ".join(map(short, r))))
-            for p in xrange(0, len(r), 10):
+            for p in pycompat.xrange(0, len(r), 10):
                 with remote.commandexecutor() as e:
                     branches = e.callcommand('branches', {
                         'nodes': r[p:p + 10],