mercurial/revset.py
changeset 22494 14f6cebfcb8a
parent 22487 e40bb83d0989
child 22495 668b26d32bf6
--- a/mercurial/revset.py	Sat Aug 30 02:25:23 2014 +0200
+++ b/mercurial/revset.py	Tue Sep 16 23:42:41 2014 -0700
@@ -2648,6 +2648,12 @@
                 yield x
             return
 
+        # We have to use this complex iteration strategy to allow multiple
+        # iterations at the same time. We need to be able to catch revision
+        # removed from `consumegen` and added to genlist in another instance.
+        #
+        # Getting rid of it would provide an about 15% speed up on this
+        # iteration.
         i = 0
         genlist = self._genlist
         consume = self._consumegen()