git: make dirstate status() respect matcher
As with other changes in this stack, we appear to have been getting
lucky in the past. An upcoming change behaved _very_ oddly without
this fix.
Differential Revision: https://phab.mercurial-scm.org/D8997
--- a/hgext/git/dirstate.py Mon Sep 07 17:12:29 2020 -0400
+++ b/hgext/git/dirstate.py Mon Sep 07 17:13:45 2020 -0400
@@ -142,6 +142,8 @@
gstatus = self.git.status()
for path, status in gstatus.items():
path = pycompat.fsencode(path)
+ if not match(path):
+ continue
if status == pygit2.GIT_STATUS_IGNORED:
if path.endswith(b'/'):
continue