mercurial/manifest.py
changeset 44269 48a1a974a92c
parent 44262 c86256bd4eb8
child 44285 63d84c18247a
--- a/mercurial/manifest.py	Tue Jan 14 17:08:45 2020 +0100
+++ b/mercurial/manifest.py	Wed Feb 05 16:16:15 2020 -0500
@@ -530,7 +530,8 @@
         # avoid the entire walk if we're only looking for specific files
         if self._filesfastpath(match):
             for fn in sorted(fset):
-                yield fn
+                if fn in self:
+                    yield fn
             return
 
         for fn in self: