Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 16380:84ba30e8c790
cmdutil: use context instead of lookup
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 08 Apr 2012 12:38:24 -0500 |
parents | a740fa28d718 |
children | 64c8ae09162e |
comparison
equal
deleted
inserted
replaced
16379:5cbfbb838198 | 16380:84ba30e8c790 |
---|---|
1148 return False | 1148 return False |
1149 | 1149 |
1150 # it might be worthwhile to do this in the iterator if the rev range | 1150 # it might be worthwhile to do this in the iterator if the rev range |
1151 # is descending and the prune args are all within that range | 1151 # is descending and the prune args are all within that range |
1152 for rev in opts.get('prune', ()): | 1152 for rev in opts.get('prune', ()): |
1153 rev = repo.changelog.rev(repo.lookup(rev)) | 1153 rev = repo[rev].rev() |
1154 ff = followfilter() | 1154 ff = followfilter() |
1155 stop = min(revs[0], revs[-1]) | 1155 stop = min(revs[0], revs[-1]) |
1156 for x in xrange(rev, stop - 1, -1): | 1156 for x in xrange(rev, stop - 1, -1): |
1157 if ff.match(x): | 1157 if ff.match(x): |
1158 wanted.discard(x) | 1158 wanted.discard(x) |