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