changeset 43714:deacffd227e2

dirstate: stop caring about match.explicitdir No one passes it in anymore. Differential Revision: https://phab.mercurial-scm.org/D7440
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 15 Nov 2019 15:36:14 -0800
parents 95d2eab0a7b9
children 5e1b0470cee7
files mercurial/dirstate.py
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirstate.py	Fri Nov 15 15:36:09 2019 -0800
+++ b/mercurial/dirstate.py	Fri Nov 15 15:36:14 2019 -0800
@@ -769,7 +769,6 @@
                 kind = _(b'directory')
             return _(b'unsupported file type (type is %s)') % kind
 
-        matchedir = match.explicitdir
         badfn = match.bad
         dmap = self._map
         lstat = os.lstat
@@ -823,8 +822,6 @@
                     if nf in dmap:
                         # file replaced by dir on disk but still in dirstate
                         results[nf] = None
-                    if matchedir:
-                        matchedir(nf)
                     foundadd((nf, ff))
                 elif kind == regkind or kind == lnkkind:
                     results[nf] = st
@@ -837,8 +834,6 @@
                     results[nf] = None
                 else:  # does it match a missing directory?
                     if self._map.hasdir(nf):
-                        if matchedir:
-                            matchedir(nf)
                         notfoundadd(nf)
                     else:
                         badfn(ff, encoding.strtolocal(inst.strerror))