diff mercurial/commands.py @ 1801:38e19b1d3de8

on revert, only undele files that are removed in the dirstate
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Fri, 24 Feb 2006 20:25:18 +0100
parents 414e81ae971f
children 06e7447c7302
line wrap: on
line diff
--- a/mercurial/commands.py	Thu Feb 23 22:47:40 2006 +0100
+++ b/mercurial/commands.py	Fri Feb 24 20:25:18 2006 +0100
@@ -1975,7 +1975,7 @@
     files, choose, anypats = matchpats(repo, pats, opts)
     modified, added, removed, deleted, unknown = repo.changes(match=choose)
     repo.forget(added)
-    repo.undelete(removed + deleted)
+    repo.undelete(removed)
 
     return repo.update(node, False, True, choose, False)