Show More
@@ -140,7 +140,7 b' def matchpats(repo, pats=[], opts={}, he' | |||
|
140 | 140 | |
|
141 | 141 | def walk(repo, pats=[], opts={}, node=None, head='', badmatch=None): |
|
142 | 142 | files, matchfn, anypats = matchpats(repo, pats, opts, head) |
|
143 |
exact = dict |
|
|
143 | exact = dict.fromkeys(files) | |
|
144 | 144 | for src, fn in repo.walk(node=node, files=files, match=matchfn, |
|
145 | 145 | badmatch=badmatch): |
|
146 | 146 | yield src, fn, util.pathto(repo.getcwd(), fn), fn in exact |
@@ -106,7 +106,7 b' def walkchangerevs(ui, repo, pats, chang' | |||
|
106 | 106 | |
|
107 | 107 | if not slowpath and not files: |
|
108 | 108 | # No files, no patterns. Display all revs. |
|
109 |
wanted = dict |
|
|
109 | wanted = dict.fromkeys(revs) | |
|
110 | 110 | copies = [] |
|
111 | 111 | if not slowpath: |
|
112 | 112 | # Only files, no patterns. Check the history of each file. |
@@ -210,7 +210,7 b' def walkchangerevs(ui, repo, pats, chang' | |||
|
210 | 210 | ff = followfilter() |
|
211 | 211 | stop = min(revs[0], revs[-1]) |
|
212 | 212 | for x in xrange(rev, stop-1, -1): |
|
213 |
if ff.match(x) and wanted |
|
|
213 | if ff.match(x) and x in wanted: | |
|
214 | 214 | del wanted[x] |
|
215 | 215 | |
|
216 | 216 | def iterate(): |
General Comments 0
You need to be logged in to leave comments.
Login now