Show More
@@ -1055,22 +1055,21 b' def walkchangerevs(repo, match, opts, pr' | |||||
1055 | # Only files, no patterns. Check the history of each file. |
|
1055 | # Only files, no patterns. Check the history of each file. | |
1056 | def filerevgen(filelog, last): |
|
1056 | def filerevgen(filelog, last): | |
1057 | cl_count = len(repo) |
|
1057 | cl_count = len(repo) | |
1058 | for i, window in increasing_windows(last, nullrev): |
|
1058 | revs = [] | |
1059 | revs = [] |
|
1059 | for j in xrange(0, last+1): | |
1060 | for j in xrange(i - window, i + 1): |
|
1060 | linkrev = filelog.linkrev(j) | |
1061 | n = filelog.node(j) |
|
1061 | if linkrev < minrev: | |
1062 |
|
|
1062 | continue | |
1063 | follow and filelog.renamed(n))) |
|
1063 | # only yield rev for which we have the changelog, it can | |
1064 | for rev in reversed(revs): |
|
1064 | # happen while doing "hg log" during a pull or commit | |
1065 |
|
|
1065 | if linkrev > maxrev or linkrev >= cl_count: | |
1066 |
|
|
1066 | break | |
1067 |
|
|
1067 | n = filelog.node(j) | |
1068 | if linkrev < minrev: |
|
1068 | revs.append((filelog.linkrev(j), | |
1069 |
|
|
1069 | follow and filelog.renamed(n))) | |
1070 | # only yield rev for which we have the changelog, it can |
|
1070 | ||
1071 | # happen while doing "hg log" during a pull or commit |
|
1071 | for rev in reversed(revs): | |
1072 | if linkrev < cl_count: |
|
1072 | yield rev | |
1073 | yield rev |
|
|||
1074 | def iterfiles(): |
|
1073 | def iterfiles(): | |
1075 | for filename in match.files(): |
|
1074 | for filename in match.files(): | |
1076 | yield filename, None |
|
1075 | yield filename, None |
General Comments 0
You need to be logged in to leave comments.
Login now