mercurial/revset.py
changeset 20845 bc95143446e8
parent 20833 47d43e2323c5
child 20863 876c17336b4e
--- a/mercurial/revset.py	Wed Mar 19 17:53:45 2014 -0700
+++ b/mercurial/revset.py	Thu Mar 20 18:55:28 2014 -0700
@@ -2464,6 +2464,9 @@
         self._ascending = ascending
         self._genlist = None
 
+    def __len__(self):
+        return len(self._list)
+
     @util.propertycache
     def _list(self):
         if not self._genlist: