Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 8210:344751cd8cb8
replace various uses of list.reverse()
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 26 Apr 2009 16:50:44 -0500 |
parents | a1a5a57efe90 |
children | 46293a0c7e9f |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Sun Apr 26 16:50:44 2009 -0500 +++ b/mercurial/cmdutil.py Sun Apr 26 16:50:44 2009 -0500 @@ -1052,8 +1052,7 @@ n = filelog.node(j) revs.append((filelog.linkrev(j), follow and filelog.renamed(n))) - revs.reverse() - for rev in revs: + for rev in reversed(revs): # only yield rev for which we have the changelog, it can # happen while doing "hg log" during a pull or commit if rev[0] < cl_count: