rollback: add reference to "hg commit --amend"
authorMartin Geisler <martin@geisler.net>
Wed, 17 Jul 2013 10:49:34 +0200
changeset 19421 b2b08be5f556
parent 19420 4f32747879d1
child 19422 d9e86d656017
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.
mercurial/commands.py
--- 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