mercurial/commands.py
changeset 9653 e4de75343743
parent 9652 2cb0cab10d2e
child 9654 96fe91be9c1e
--- 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