##// END OF EJS Templates
replace xrange(0, n) with xrange(n)
Martin Geisler -
r8624:2b3dec0e default
parent child Browse files
Show More
@@ -116,7 +116,7 b' def colorstatus(orig, ui, repo, *pats, *'
116 116 lines = lines_with_status
117 117
118 118 # apply color to output and display it
119 for i in xrange(0, len(lines)):
119 for i in xrange(len(lines)):
120 120 status = _status_abbreviations[lines_with_status[i][0]]
121 121 effects = _status_effects[status]
122 122 if effects:
@@ -188,7 +188,7 b' def revtree(ui, args, repo, full="tree",'
188 188 else:
189 189 i -= chunk
190 190
191 for x in xrange(0, chunk):
191 for x in xrange(chunk):
192 192 if i + x >= count:
193 193 l[chunk - x:] = [0] * (chunk - x)
194 194 break
@@ -1407,7 +1407,7 b' class queue:'
1407 1407 series = []
1408 1408 applied = []
1409 1409 qpp = None
1410 for i in xrange(0, len(lines)):
1410 for i in xrange(len(lines)):
1411 1411 if lines[i] == 'Patch Data:':
1412 1412 datastart = i + 1
1413 1413 elif lines[i].startswith('Dirstate:'):
@@ -36,7 +36,7 b' def _collectextranodes(repo, files, link'
36 36 extra = []
37 37 startrev = count = len(revlog)
38 38 # find the truncation point of the revlog
39 for i in xrange(0, count):
39 for i in xrange(count):
40 40 lrev = revlog.linkrev(i)
41 41 if lrev >= link:
42 42 startrev = i + 1
@@ -1162,7 +1162,7 b' class revlog(object):'
1162 1162 revs.insert(0, p)
1163 1163
1164 1164 # build deltas
1165 for d in xrange(0, len(revs) - 1):
1165 for d in xrange(len(revs) - 1):
1166 1166 a, b = revs[d], revs[d + 1]
1167 1167 nb = self.node(b)
1168 1168
General Comments 0
You need to be logged in to leave comments. Login now