mercurial/localrepo.py
changeset 43711 7f443cce2972
parent 43661 32048206e7be
child 43712 f965b1027fb0
--- a/mercurial/localrepo.py	Mon Nov 18 20:10:38 2019 -0800
+++ b/mercurial/localrepo.py	Fri Nov 15 14:41:00 2019 -0800
@@ -2800,7 +2800,8 @@
                     continue
                 if f in status.deleted:
                     fail(f, _(b'file not found!'))
-                if f in vdirs:  # visited directory
+                # Is it a directory that exists or used to exist?
+                if self.wvfs.isdir(f) or wctx.p1().hasdir(f):
                     d = f + b'/'
                     for mf in matched:
                         if mf.startswith(d):