diff mercurial/commands.py @ 9653:e4de75343743

walkchangerevs: kill window step of iterator
author Matt Mackall <mpm@selenic.com>
date Sun, 25 Oct 2009 18:43:58 -0500
parents 2cb0cab10d2e
children 96fe91be9c1e
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Oct 25 18:43:56 2009 -0500
+++ b/mercurial/commands.py	Sun Oct 25 18:43:58 2009 -0500
@@ -1293,10 +1293,7 @@
     found = False
     follow = opts.get('follow')
     for st, rev, fns in cmdutil.walkchangerevs(ui, repo, matchfn, get, opts):
-        if st == 'window':
-            matches.clear()
-            revfiles.clear()
-        elif st == 'add':
+        if st == 'add':
             ctx = get(rev)
             pctx = ctx.parents()[0]
             parent = pctx.rev()
@@ -1347,6 +1344,8 @@
                         skip[fn] = True
                         if copy:
                             skip[copy] = True
+            del matches[rev]
+            del revfiles[rev]
 
 def heads(ui, repo, *branchrevs, **opts):
     """show current repository heads or show branch heads