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