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
+++ b/mercurial/commands.py
@@ -1975,7 +1975,7 @@ def revert(ui, repo, *pats, **opts):
     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)