# HG changeset patch # User Brendan Cully # Date 2006-08-15 07:03:48 # Node ID 02e239bbd7f9d356c667e349a4370e501a515586 # Parent 41f8b041893b63a4f4e55b368eaaa47e3629059b A fix for --prune. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -221,7 +221,7 @@ def walkchangerevs(ui, repo, pats, opts) # 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'): + for rev in opts.get('prune', ()): rev = repo.changelog.rev(repo.lookup(rev)) ff = followfilter() stop = min(revs[0], revs[-1])