comparison mercurial/commands.py @ 2896:02e239bbd7f9

A fix for --prune.
author Brendan Cully <brendan@kublai.com>
date Tue, 15 Aug 2006 00:03:48 -0700
parents 8b02af865990
children 013921c753bd
comparison
equal deleted inserted replaced
2895:41f8b041893b 2896:02e239bbd7f9
219 219
220 return False 220 return False
221 221
222 # it might be worthwhile to do this in the iterator if the rev range 222 # it might be worthwhile to do this in the iterator if the rev range
223 # is descending and the prune args are all within that range 223 # is descending and the prune args are all within that range
224 for rev in opts.get('prune'): 224 for rev in opts.get('prune', ()):
225 rev = repo.changelog.rev(repo.lookup(rev)) 225 rev = repo.changelog.rev(repo.lookup(rev))
226 ff = followfilter() 226 ff = followfilter()
227 stop = min(revs[0], revs[-1]) 227 stop = min(revs[0], revs[-1])
228 for x in range(rev, stop-1, -1): 228 for x in range(rev, stop-1, -1):
229 if ff.match(x) and wanted.has_key(x): 229 if ff.match(x) and wanted.has_key(x):