Mercurial > hg-stable
changeset 11459:59af1d65029c stable
revert: Make it clearer when not to use revert
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 28 Jun 2010 15:08:01 +0200 |
parents | ec21d91c79b3 |
children | 9e250c145c38 |
files | mercurial/commands.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Sun Jun 27 22:20:47 2010 -0500 +++ b/mercurial/commands.py Mon Jun 28 15:08:01 2010 +0200 @@ -3019,8 +3019,11 @@ def revert(ui, repo, *pats, **opts): """restore individual files or directories to an earlier state - (Use update -r to check out earlier revisions, revert does not - change the working directory parents.) + NOTE: This command is most likely not what you are looking for. revert + will partially overwrite content in the working directory without changing + the working directory parents. Use :hg:`update -r rev` to check out earlier + revisions, or :hg:`update --clean .` to undo a merge which has added + another parent. With no revision specified, revert the named files or directories to the contents they had in the parent of the working directory.