mercurial/context.py
changeset 40085 aa41f1b01f31
parent 40084 2cf18f46a1ce
child 40258 2f47703c5489
--- a/mercurial/context.py	Fri Sep 28 17:09:15 2018 -0700
+++ b/mercurial/context.py	Fri Sep 28 22:35:05 2018 -0700
@@ -1173,6 +1173,7 @@
                                                unknown=True, ignored=False))
 
     def matches(self, match):
+        match = self._repo.narrowmatch(match)
         ds = self._repo.dirstate
         return sorted(f for f in ds.matches(match) if ds[f] != 'r')