mercurial/manifest.py
changeset 24682 aef3d1469773
parent 24670 dfb86af18a35
child 24683 4eaea0ed8dc1
equal deleted inserted replaced
24681:33ab99a6ad9b 24682:aef3d1469773
   226 
   226 
   227         # avoid the entire walk if we're only looking for specific files
   227         # avoid the entire walk if we're only looking for specific files
   228         if fset and not match.anypats() and util.all(fn in self for fn in fset):
   228         if fset and not match.anypats() and util.all(fn in self for fn in fset):
   229             for fn in sorted(fset):
   229             for fn in sorted(fset):
   230                 yield fn
   230                 yield fn
   231             raise StopIteration
   231             return
   232 
   232 
   233         for fn in self:
   233         for fn in self:
   234             if fn in fset:
   234             if fn in fset:
   235                 # specified pattern is the exact name
   235                 # specified pattern is the exact name
   236                 fset.remove(fn)
   236                 fset.remove(fn)