comparison hgext/git/dirstate.py @ 45421: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
comparison
equal deleted inserted replaced
45420:c67529569643 45421:0c6b2cc9a7bb
140 [], 140 [],
141 ) 141 )
142 gstatus = self.git.status() 142 gstatus = self.git.status()
143 for path, status in gstatus.items(): 143 for path, status in gstatus.items():
144 path = pycompat.fsencode(path) 144 path = pycompat.fsencode(path)
145 if not match(path):
146 continue
145 if status == pygit2.GIT_STATUS_IGNORED: 147 if status == pygit2.GIT_STATUS_IGNORED:
146 if path.endswith(b'/'): 148 if path.endswith(b'/'):
147 continue 149 continue
148 ignored.append(path) 150 ignored.append(path)
149 elif status in ( 151 elif status in (