开发者

disable hg qfinish without changeset message

开发者 https://www.devze.com 2023-01-14 03:20 出处:网络
I use mercurial queues and sometimes I forget to set my message with a hg qrefresh -m ... and forget to check before I run hg qfinish and I get the message patch MyPatch final开发者_StackOverflow社区i

I use mercurial queues and sometimes I forget to set my message with a hg qrefresh -m ... and forget to check before I run hg qfinish and I get the message patch MyPatch final开发者_StackOverflow社区ized without changeset message. Is there any way I can make qfinish abort if there is no message?

The only way I found to fix this after I do that is to generate a patch, hg strip my last revision, reapply the patch and then commit with my message.


Use hg qimport -r tip to turn the last changeset (your finalized patch) in to a MQ patch again.


One way around this problem is to add -e to the default options for qrefresh and qnew, in your ~/.hgrc:

[defaults]
qrefresh = -e
qnew = -e

This way you can no longer forget to describe the patch.

0

精彩评论

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