mercurial/commands.py
changeset 2896 02e239bbd7f9
parent 2892 8b02af865990
child 2903 013921c753bd
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):