mercurial/context.py
changeset 24633 2f8f7cc6a53b
parent 24420 065b886f61c6
child 24646 5693c834bcb4
equal deleted inserted replaced
24632:b2fb1403994e 24633:2f8f7cc6a53b
   590         fset = set(match.files())
   590         fset = set(match.files())
   591         # avoid the entire walk if we're only looking for specific files
   591         # avoid the entire walk if we're only looking for specific files
   592         if fset and not match.anypats():
   592         if fset and not match.anypats():
   593             if util.all(fn in self for fn in fset):
   593             if util.all(fn in self for fn in fset):
   594                 for fn in sorted(fset):
   594                 for fn in sorted(fset):
   595                     if match(fn):
   595                     yield fn
   596                         yield fn
       
   597                 raise StopIteration
   596                 raise StopIteration
   598 
   597 
   599         for fn in self:
   598         for fn in self:
   600             if fn in fset:
   599             if fn in fset:
   601                 # specified pattern is the exact name
   600                 # specified pattern is the exact name