[version-control] How to edit incorrect commit message in Mercurial?

There is another approach with the MQ extension and the debug commands. This is a general way to modify history without losing data. Let me assume the same situation as Antonio.

// set current tip to rev 497
hg debugsetparents 497
hg debugrebuildstate
// hg add/remove if needed
hg commit
hg strip [-n] 498

Examples related to version-control

How can I switch to another branch in git? Do I commit the package-lock.json file created by npm 5? Project vs Repository in GitHub Remove a modified file from pull request Git push: "fatal 'origin' does not appear to be a git repository - fatal Could not read from remote repository." Git: How to squash all commits on branch git: updates were rejected because the remote contains work that you do not have locally Sourcetree - undo unpushed commits Cannot checkout, file is unmerged Git diff between current branch and master but not including unmerged master commits

Examples related to mercurial

Convert Mercurial project to Git Mercurial: how to amend the last commit? Discard all and get clean copy of latest revision? Mercurial undo last commit How to save username and password with Mercurial? Mercurial — revert back to old version and continue from there Is there any way to delete local commits in Mercurial? How to correctly close a feature branch in Mercurial? How can I switch to a tag/branch in hg? What is the difference between hg forget and hg remove?

Examples related to tortoisehg

Mercurial undo last commit How to edit incorrect commit message in Mercurial?

Examples related to commit-message

How to output git log with the first line only? Should I use past or present tense in git commit messages? Print commit message of a given commit in git How do I make Git use the editor of my choice for commits? How to edit incorrect commit message in Mercurial? How do I edit an incorrect commit message in git ( that I've pushed )?

Examples related to mercurial-commit

Mercurial: how to amend the last commit? Mercurial undo last commit How to edit incorrect commit message in Mercurial?