# HG changeset patch # User Nicolas Dumazet # Date 2010-11-10 17:05:02 # Node ID 15390d1a3cfcc502da250145849f7ca17fdfabca # Parent 6bd9778ae74912a3a88661b3a2369505aae1569f cmdutil: move range check outside of filerevgen Simple refactor, no logic change. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -1138,7 +1138,7 @@ def walkchangerevs(repo, match, opts, pr continue # 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: break parentlinkrevs = [] @@ -1180,7 +1180,7 @@ def walkchangerevs(repo, match, opts, pr # 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: continue # XXX insert 1327 fix here if flparentlinkrevs: