Mercurial > hg > mercurial-crew-with-dirclash
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 +++ 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)