Patchwork D6402: dirstate: drop workaround for '.' matching root directory

login
register
mail settings
Submitter phabricator
Date May 20, 2019, 3:47 p.m.
Message ID <b2b55ae04e3c89e3a6b3cdc88edee598@localhost.localdomain>
Download mbox | patch
Permalink /patch/40150/
State Not Applicable
Headers show

Comments

phabricator - May 20, 2019, 3:47 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG448486e12c13: dirstate: drop workaround for &#039;.&#039; matching root directory (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6402?vs=15174&id=15194

REVISION DETAIL
  https://phab.mercurial-scm.org/D6402

AFFECTED FILES
  mercurial/dirstate.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -662,8 +662,6 @@ 
         self._dirty = False
 
     def _dirignore(self, f):
-        if f == '.':
-            return False
         if self._ignore(f):
             return True
         for p in util.finddirs(f):