As the repository of hg itself, some changesets are marked with 'stable'
. I am wondering how to add the 'stable'
mark to changesets. I had googled but it doesn't help. I tried 'hg help tag'
but still can not figure out how to do it. Do I miss something very basic?
Thanks in advance.
A simple way to 'uncommit' your last commit is to use hg strip -r -1 -k. In case the link breaks, the documentation mentioned by @phb states: hg rollback Roll back the last transaction (DANGEROUS) (DEPRECATED) Please use 'hg commit --amend' instead of rollback to correct mistakes in the last commit.
If you want to revert changes already committed: To backout a specific changeset use hg backout -r CHANGESET . This will prompt you directly with a request for the commit message to use in the backout. To revert a file to a specific changeset, use hg revert -r CHANGESET FILENAME .
I believe they are not "marked" as stable.
Those commits are part of the branch 'stable' history.
See the graph:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With