D4899: narrow: filter files by narrowspec in ctx.matches()

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Sat Oct 6 01:08:02 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGaa41f1b01f31: narrow: filter files by narrowspec in ctx.matches() (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4899?vs=11723&id=11737

REVISION DETAIL
  https://phab.mercurial-scm.org/D4899

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -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')
 



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list