Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
1800:414e81ae971f | 1801:38e19b1d3de8 |
---|---|
1973 repo.dirstate.parents()[0] | 1973 repo.dirstate.parents()[0] |
1974 | 1974 |
1975 files, choose, anypats = matchpats(repo, pats, opts) | 1975 files, choose, anypats = matchpats(repo, pats, opts) |
1976 modified, added, removed, deleted, unknown = repo.changes(match=choose) | 1976 modified, added, removed, deleted, unknown = repo.changes(match=choose) |
1977 repo.forget(added) | 1977 repo.forget(added) |
1978 repo.undelete(removed + deleted) | 1978 repo.undelete(removed) |
1979 | 1979 |
1980 return repo.update(node, False, True, choose, False) | 1980 return repo.update(node, False, True, choose, False) |
1981 | 1981 |
1982 def root(ui, repo): | 1982 def root(ui, repo): |
1983 """print the root (top) of the current working dir | 1983 """print the root (top) of the current working dir |