changeset 38783 | e7aa113b14f7 |
parent 38775 | e971d6eb4770 |
child 38818 | e411774a2e0f |
--- a/mercurial/context.py Wed Aug 01 12:57:15 2018 -0700 +++ b/mercurial/context.py Wed Aug 01 13:00:45 2018 -0700 @@ -1896,7 +1896,7 @@ # Test that each new directory to be created to write this path from p2 # is not a file in p1. components = path.split('/') - for i in xrange(len(components)): + for i in pycompat.xrange(len(components)): component = "/".join(components[0:i]) if component in self.p1(): fail(path, component)