Mercurial > hg-stable
changeset 45432:0c6b2cc9a7bb
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
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Mon, 07 Sep 2020 17:13:45 -0400 |
parents | c67529569643 |
children | 601e3658216d |
files | hgext/git/dirstate.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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