D755: dirstate: move _dirs to dirstatemap

2017-09-26 Thread durham (Durham Goode)
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


D755: dirstate: move _dirs to dirstatemap

2017-09-24 Thread indygreg (Gregory Szorc)
indygreg accepted this revision.
indygreg added a comment.
This revision is now accepted and ready to land.


  Again, I wish a docstring were added. But that can be deferred.

REPOSITORY
  rHG Mercurial

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

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