Show More
@@ -18,6 +18,8 b'' | |||
|
18 | 18 | > import os |
|
19 | 19 | > import shutil |
|
20 | 20 | > import sys |
|
21 | > if sys.version_info[0] > 2: | |
|
22 | > xrange = range | |
|
21 | 23 | > f = open('$TESTTMP/cachelog.log', 'w') |
|
22 | 24 | > srccache = os.path.join('$TESTTMP', 'oldhgcache') |
|
23 | 25 | > def log(message): |
@@ -18,6 +18,7 b' import silenttestrunner' | |||
|
18 | 18 | sys.path[0:0] = [os.path.join(os.path.dirname(__file__), '..')] |
|
19 | 19 | from mercurial.node import nullid |
|
20 | 20 | from mercurial import ( |
|
21 | pycompat, | |
|
21 | 22 | ui as uimod, |
|
22 | 23 | ) |
|
23 | 24 | from hgext.remotefilelog import ( |
@@ -245,7 +246,7 b' class datapacktestsbase(object):' | |||
|
245 | 246 | revisions = [] |
|
246 | 247 | blobs = {} |
|
247 | 248 | total = basepack.SMALLFANOUTCUTOFF + 1 |
|
248 | for i in xrange(total): | |
|
249 | for i in pycompat.xrange(total): | |
|
249 | 250 | filename = "filename-%s" % i |
|
250 | 251 | content = filename |
|
251 | 252 | node = self.getHash(content) |
@@ -328,7 +329,7 b' class datapacktestsbase(object):' | |||
|
328 | 329 | ] |
|
329 | 330 | for packsize in packsizes: |
|
330 | 331 | revisions = [] |
|
331 | for i in xrange(packsize): | |
|
332 | for i in pycompat.xrange(packsize): | |
|
332 | 333 | filename = "filename-%s" % i |
|
333 | 334 | content = "content-%s" % i |
|
334 | 335 | node = self.getHash(content) |
General Comments 0
You need to be logged in to leave comments.
Login now