Show More
@@ -410,6 +410,15 b' class changectx(basectx):' | |||
|
410 | 410 | # for dirstate.walk, files=['.'] means "walk the whole tree". |
|
411 | 411 | # follow that here, too |
|
412 | 412 | fset.discard('.') |
|
413 | ||
|
414 | # avoid the entire walk if we're only looking for specific files | |
|
415 | if fset and not match.anypats(): | |
|
416 | if util.all([fn in self for fn in fset]): | |
|
417 | for fn in sorted(fset): | |
|
418 | if match(fn): | |
|
419 | yield fn | |
|
420 | raise StopIteration | |
|
421 | ||
|
413 | 422 | for fn in self: |
|
414 | 423 | if fn in fset: |
|
415 | 424 | # specified pattern is the exact name |
General Comments 0
You need to be logged in to leave comments.
Login now