更新Mercurial MQ扩展中的提交消息

Jer*_*rub 7 version-control mercurial mercurial-queue

使用hg qnewhg qrefresh创建和更新我想要应用到我的存储库的补丁后,但是我写的提交消息hg qnew不是很好,它没有引用trac的票号,我想说点什么关于我的提交所解决的一些问题.

我该怎么办呢hg qrewritemycommitmessage.我已经检查了网站上文档,我发现空白了.

kuy*_*kuy 7

你这样做hg qrefresh -m "new commit message".


Mar*_*ler 5

此外

$ hg qrefresh -m "new message"
Run Code Online (Sandbox Code Playgroud)

由kuy建议,你也可以使用

$ hg qrefresh -e
Run Code Online (Sandbox Code Playgroud)

编辑当前消息.我发现这非常方便,因为我经常有多行提交消息,我需要在补丁的生命周期内多次修改.事实上,我总是创建没有提交消息的补丁 - 只是hg qnew foo- 然后在我继续时编辑提交消息.