on revert, only undele files that are removed in the dirstate
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 24 Feb 2006 20:25:18 +0100
changeset 1801 38e19b1d3de8
parent 1800 414e81ae971f
child 1802 8a7a24b96697
on revert, only undele files that are removed in the dirstate
mercurial/commands.py
--- 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)