changeset 2896:02e239bbd7f9

A fix for --prune.
author Brendan Cully <brendan@kublai.com>
date Tue, 15 Aug 2006 00:03:48 -0700
parents 41f8b041893b
children 8fd6925ae32f
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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])