mercurial/dirstate.py
changeset 34409 7d2f71b7bc31
parent 34346 ec769bba34d3
child 34481 cbda631c1dde
--- a/mercurial/dirstate.py	Sun Oct 01 12:54:35 2017 +0100
+++ b/mercurial/dirstate.py	Sun Oct 01 16:46:02 2017 +0100
@@ -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)