Nicolas Dumazet  committed 15390d1

cmdutil: move range check outside of filerevgen

Simple refactor, no logic change.

  • Participants
  • Parent commits 6bd9778
  • Branches stable

Comments (0)

Files changed (1)

File mercurial/

                 # only yield rev for which we have the changelog, it can
                 # happen while doing "hg log" during a pull or commit
-                if linkrev > maxrev or linkrev >= cl_count:
+                if linkrev >= cl_count:
                 parentlinkrevs = []
             # iterate from latest to oldest revision
             for rev, flparentlinkrevs, copied in filerevgen(filelog, last):
-                if rev not in ancestors:
+                if rev > maxrev or rev not in ancestors:
                 # XXX insert 1327 fix here
                 if flparentlinkrevs: