Patchwork D755: dirstate: move _dirs to dirstatemap

login
register
mail settings
Submitter phabricator
Date Sept. 29, 2017, 6:43 p.m.
Message ID <be7d2fc17f262489c22c8a42c37d1b84@localhost.localdomain>
Download mbox | patch
Permalink /patch/24215/
State Not Applicable
Headers show

Comments

phabricator - Sept. 29, 2017, 6:43 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG63f4047b5710: dirstate: move _dirs to dirstatemap (authored by durham, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D755?vs=2079&id=2158

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

AFFECTED FILES
  mercurial/dirstate.py

CHANGE DETAILS




To: durham, #hg-reviewers, indygreg
Cc: indygreg, mercurial-devel

Patch

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -210,7 +210,7 @@ 
 
     @propertycache
     def _dirs(self):
-        return util.dirs(self._map._map, 'r')
+        return self._map.dirs()
 
     def dirs(self):
         return self._dirs
@@ -1375,3 +1375,9 @@ 
                 f[normcase(name)] = name
         f['.'] = '.' # prevents useless util.fspath() invocation
         return f
+
+    def dirs(self):
+        """Returns a set-like object containing all the directories in the
+        current dirstate.
+        """
+        return util.dirs(self._map, 'r')