durham updated this revision to Diff 2079.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D755?vs=1950=2079
REVISION DETAIL
https://phab.mercurial-scm.org/D755
AFFECTED FILES
mercurial/dirstate.py
CHANGE DETAILS
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')
To: durham, #hg-reviewers, indygreg
Cc: indygreg, mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel