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