Show More
@@ -257,11 +257,14 b' class revlog(object):' | |||||
257 | return iter(xrange(len(self))) |
|
257 | return iter(xrange(len(self))) | |
258 | def revs(self, start=0, stop=None): |
|
258 | def revs(self, start=0, stop=None): | |
259 | """iterate over all rev in this revlog (from start to stop)""" |
|
259 | """iterate over all rev in this revlog (from start to stop)""" | |
260 |
|
|
260 | step = 1 | |
261 | stop = len(self) |
|
261 | if stop is not None: | |
|
262 | if start > stop: | |||
|
263 | step = -1 | |||
|
264 | stop += step | |||
262 | else: |
|
265 | else: | |
263 |
stop |
|
266 | stop = len(self) | |
264 | return xrange(start, stop) |
|
267 | return xrange(start, stop, step) | |
265 |
|
268 | |||
266 | @util.propertycache |
|
269 | @util.propertycache | |
267 | def nodemap(self): |
|
270 | def nodemap(self): |
General Comments 0
You need to be logged in to leave comments.
Login now