Disable hg qfinish without changeet message

I use mercury queues, and sometimes I forget to set my message with hg qrefresh -m ...and forget to check before starting hg qfinish, and I get a message patch MyPatch finalized without changeset message. Is there a way I can do qfinish abort if there is no message?

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

+3
source share
2 answers

Use hg qimport -r tipto re-include the last set of changes (your finalized patch) in the MQ patch.

+6

- -e qrefresh qnew ~/.hgrc:

[defaults]
qrefresh = -e
qnew = -e

, .

0

Source: https://habr.com/ru/post/1763111/


All Articles