mercurial/manifest.py
changeset 44269 48a1a974a92c
parent 44262 c86256bd4eb8
child 44285 63d84c18247a
equal deleted inserted replaced
44268:aa0fc32ece9e 44269:48a1a974a92c
   528         fset = set(match.files())
   528         fset = set(match.files())
   529 
   529 
   530         # avoid the entire walk if we're only looking for specific files
   530         # avoid the entire walk if we're only looking for specific files
   531         if self._filesfastpath(match):
   531         if self._filesfastpath(match):
   532             for fn in sorted(fset):
   532             for fn in sorted(fset):
   533                 yield fn
   533                 if fn in self:
       
   534                     yield fn
   534             return
   535             return
   535 
   536 
   536         for fn in self:
   537         for fn in self:
   537             if fn in fset:
   538             if fn in fset:
   538                 # specified pattern is the exact name
   539                 # specified pattern is the exact name