mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
backout: add examples to clarify basic usage
This commit is contained in:
parent
0ab681f781
commit
f15b803069
@ -486,6 +486,23 @@ def backout(ui, repo, node=None, rev=None, commit=False, **opts):
|
||||
|
||||
.. container:: verbose
|
||||
|
||||
Examples:
|
||||
|
||||
- Reverse the effect of the parent of the working directory.
|
||||
This backout will be committed immediately::
|
||||
|
||||
hg backout -r .
|
||||
|
||||
- Reverse the effect of previous bad revision 23::
|
||||
|
||||
hg backout -r 23
|
||||
hg commit -m "Backout revision 23"
|
||||
|
||||
- Reverse the effect of previous bad revision 23 and
|
||||
commit the backout immediately::
|
||||
|
||||
hg backout -r 23 --commit
|
||||
|
||||
By default, the pending changeset will have one parent,
|
||||
maintaining a linear history. With --merge, the pending
|
||||
changeset will instead have two parents: the old parent of the
|
||||
|
Loading…
Reference in New Issue
Block a user