Show More
@@ -155,19 +155,19 b' class changectx(object):' | |||
|
155 | 155 | return changectx(self._repo, n) |
|
156 | 156 | |
|
157 | 157 | def walk(self, match): |
|
158 |
f |
|
|
158 | fset = set(match.files()) | |
|
159 | 159 | # for dirstate.walk, files=['.'] means "walk the whole tree". |
|
160 | 160 | # follow that here, too |
|
161 |
f |
|
|
161 | fset.discard('.') | |
|
162 | 162 | for fn in self: |
|
163 |
for ffn in f |
|
|
163 | for ffn in fset: | |
|
164 | 164 | # match if the file is the exact name or a directory |
|
165 | 165 | if ffn == fn or fn.startswith("%s/" % ffn): |
|
166 |
|
|
|
166 | fset.remove(ffn) | |
|
167 | 167 | break |
|
168 | 168 | if match(fn): |
|
169 | 169 | yield fn |
|
170 |
for fn in sorted(f |
|
|
170 | for fn in sorted(fset): | |
|
171 | 171 | if match.bad(fn, 'No such file in rev ' + str(self)) and match(fn): |
|
172 | 172 | yield fn |
|
173 | 173 |
General Comments 0
You need to be logged in to leave comments.
Login now