mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
revert: simplify usage note
This points people looking for other commands to the right place with a minimum of verbiage.
This commit is contained in:
parent
310bb08a92
commit
201910f74e
@ -4089,12 +4089,8 @@ def revert(ui, repo, *pats, **opts):
|
||||
"""restore files to their checkout state
|
||||
|
||||
.. 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.
|
||||
To check out earlier revisions, you should use :hg:`update REV`.
|
||||
To cancel a merge (and lose your changes), use :hg:`update --clean .`.
|
||||
|
||||
With no revision specified, revert the named files or directories
|
||||
to the contents they had in the parent of the working directory.
|
||||
|
Loading…
Reference in New Issue
Block a user