Update mandatory message in Mercurial MQ extension

After using hg qnew and hg qrefresh to create and update the patch that I want to apply to my repository, but the commit message that I wrote when I did hg qnew was not very good, it did not refer to the ticket number from trac, and I would like to say something in it about some of the problems that my addresses make.

How do I do something like hg qrewritemycommitmessage . I reviewed the docs on the website and I got to work.

+7
version-control mercurial mercurial-queue
source share
2 answers

You just do hg qrefresh -m "new commit message" .

+7
source share

In addition to

 $ hg qrefresh -m "new message" 

suggested by kuy, you can also use

 $ hg qrefresh -e 

to edit the current message. I find this very convenient, as I often have messages with several lines that I need to review many times in the life of the patch. Infact, I always create my fixes without a commit message - just hg qnew foo - and then edit the commit message when I go.

+5
source share

All Articles