Mercurial > hg
changeset 19421:b2b08be5f556
rollback: add reference to "hg commit --amend"
Now that rollback is deprecated (yay!) users might need a pointer to
the alternative for 99% of the cases where I used rollback.
author | Martin Geisler <martin@geisler.net> |
---|---|
date | Wed, 17 Jul 2013 10:49:34 +0200 |
parents | 4f32747879d1 |
children | d9e86d656017 |
files | mercurial/commands.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Jul 13 23:58:01 2013 +0200 +++ b/mercurial/commands.py Wed Jul 17 10:49:34 2013 +0200 @@ -5016,6 +5016,9 @@ def rollback(ui, repo, **opts): """roll back the last transaction (DANGEROUS) (DEPRECATED) + Please use :hg:`commit --amend` instead of rollback to correct + mistakes in the last commit. + This command should be used with care. There is only one level of rollback, and there is no way to undo a rollback. It will also restore the dirstate at the time of the last transaction, losing