diff mercurial/repair.py @ 16628:3c738cb162bf

localrepo: cleanup var names and comments Cosmetic cleanups. Fix comment typo referring to the notion of multiple tips. Make variable describing a generator end in 'gen'. Fix another var containing a node not to end with 'rev'.
author redstone
date Fri, 11 May 2012 10:53:12 -0700
parents def6a19c3b4d
children c2d9ef43ff6c
line wrap: on
line diff
--- a/mercurial/repair.py	Fri May 11 17:26:58 2012 +0200
+++ b/mercurial/repair.py	Fri May 11 10:53:12 2012 -0700
@@ -38,14 +38,14 @@
     """return the changesets which will be broken by the truncation"""
     s = set()
     def collectone(revlog):
-        links = (revlog.linkrev(i) for i in revlog)
+        linkgen = (revlog.linkrev(i) for i in revlog)
         # find the truncation point of the revlog
-        for lrev in links:
+        for lrev in linkgen:
             if lrev >= striprev:
                 break
         # see if any revision after this point has a linkrev
         # less than striprev (those will be broken by strip)
-        for lrev in links:
+        for lrev in linkgen:
             if lrev < striprev:
                 s.add(lrev)