开发者

Updating Commit Message in Mercurial MQ extension

开发者 https://www.devze.com 2022-12-26 08:14 出处:网络
After using hg qnew and hg qrefresh to create and update a 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 reference t

After using hg qnew and hg qrefresh to create and update a 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 reference the ticket number from trac, and I would like to say something in it about some of the issues that my commit addresses.

How d开发者_StackOverflowo I do something like hg qrewritemycommitmessage. I have examined the docs on the website and I have come up blank.


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


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 that very handy since I often have multi-line commit messages that I need to revise many times over the lifetime of a patch. Infact, I always create my patches with no commit message — just hg qnew foo — and then edit the commit message as I go along.

0

精彩评论

暂无评论...
验证码 换一张
取 消