Show More
@@ -1070,12 +1070,15 b' class revlog(object):' | |||
|
1070 | 1070 | def revs(self, start=0, stop=None): |
|
1071 | 1071 | """iterate over all rev in this revlog (from start to stop)""" |
|
1072 | 1072 | step = 1 |
|
1073 | length = len(self) | |
|
1073 | 1074 | if stop is not None: |
|
1074 | 1075 | if start > stop: |
|
1075 | 1076 | step = -1 |
|
1076 | 1077 | stop += step |
|
1078 | if stop > length: | |
|
1079 | stop = length | |
|
1077 | 1080 | else: |
|
1078 |
stop = len |
|
|
1081 | stop = length | |
|
1079 | 1082 | return xrange(start, stop, step) |
|
1080 | 1083 | |
|
1081 | 1084 | @util.propertycache |
General Comments 0
You need to be logged in to leave comments.
Login now