D884: dirstate: implement __len__ on dirstatemap (issue5695)
swhitaker (Simon Whitaker)
phabricator at mercurial-scm.org
Sun Oct 1 12:15:05 EDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7d2f71b7bc31: dirstate: implement __len__ on dirstatemap (issue5695) (authored by swhitaker, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D884?vs=2295&id=2296
REVISION DETAIL
https://phab.mercurial-scm.org/D884
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
@@ -1300,6 +1300,9 @@
def iteritems(self):
return self._map.iteritems()
+ def __len__(self):
+ return len(self._map)
+
def __iter__(self):
return iter(self._map)
To: swhitaker, #hg-reviewers, durham, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list