Show More
@@ -1052,12 +1052,8 b' def walkchangerevs(repo, match, opts, pr' | |||||
1052 |
|
1052 | |||
1053 | if not slowpath: |
|
1053 | if not slowpath: | |
1054 | # Only files, no patterns. Check the history of each file. |
|
1054 | # Only files, no patterns. Check the history of each file. | |
1055 |
def filerevgen(filelog, |
|
1055 | def filerevgen(filelog, last): | |
1056 | cl_count = len(repo) |
|
1056 | cl_count = len(repo) | |
1057 | if node is None: |
|
|||
1058 | last = len(filelog) - 1 |
|
|||
1059 | else: |
|
|||
1060 | last = filelog.rev(node) |
|
|||
1061 | for i, window in increasing_windows(last, nullrev): |
|
1057 | for i, window in increasing_windows(last, nullrev): | |
1062 | revs = [] |
|
1058 | revs = [] | |
1063 | for j in xrange(i - window, i + 1): |
|
1059 | for j in xrange(i - window, i + 1): | |
@@ -1088,7 +1084,13 b' def walkchangerevs(repo, match, opts, pr' | |||||
1088 | break |
|
1084 | break | |
1089 | else: |
|
1085 | else: | |
1090 | continue |
|
1086 | continue | |
1091 | for rev, copied in filerevgen(filelog, node): |
|
1087 | ||
|
1088 | if node is None: | |||
|
1089 | last = len(filelog) - 1 | |||
|
1090 | else: | |||
|
1091 | last = filelog.rev(node) | |||
|
1092 | ||||
|
1093 | for rev, copied in filerevgen(filelog, last): | |||
1092 | if rev <= maxrev: |
|
1094 | if rev <= maxrev: | |
1093 | if rev < minrev: |
|
1095 | if rev < minrev: | |
1094 | break |
|
1096 | break |
General Comments 0
You need to be logged in to leave comments.
Login now