Updating Commit Message in Mercurial MQ extension

旧巷老猫 提交于 2019-12-07 01:04:27

问题


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 do I do something like hg qrewritemycommitmessage. I have examined the docs on the website and I have come up blank.


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/2583271/updating-commit-message-in-mercurial-mq-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!