hgext/git/gitlog.py
changeset 44481 8b5f5d8ad783
parent 44480 f19491aae641
child 44484 ec54b3d2af0b
--- a/hgext/git/gitlog.py	Sat Mar 07 17:42:40 2020 -0500
+++ b/hgext/git/gitlog.py	Sat Mar 07 17:44:55 2020 -0500
@@ -103,6 +103,9 @@
         except error.LookupError:
             return False
 
+    def __iter__(self):
+        return iter(pycompat.xrange(len(self)))
+
     @property
     def filteredrevs(self):
         # TODO: we should probably add a refs/hg/ namespace for hidden