changeset 16380:84ba30e8c790

cmdutil: use context instead of lookup
author Matt Mackall <mpm@selenic.com>
date Sun, 08 Apr 2012 12:38:24 -0500
parents 5cbfbb838198
children 64c8ae09162e
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Sun Apr 08 12:38:23 2012 -0500
+++ b/mercurial/cmdutil.py	Sun Apr 08 12:38:24 2012 -0500
@@ -1150,7 +1150,7 @@
     # it might be worthwhile to do this in the iterator if the rev range
     # is descending and the prune args are all within that range
     for rev in opts.get('prune', ()):
-        rev = repo.changelog.rev(repo.lookup(rev))
+        rev = repo[rev].rev()
         ff = followfilter()
         stop = min(revs[0], revs[-1])
         for x in xrange(rev, stop - 1, -1):