Using the Mercurial queues extension, I can do an empty commit with some commit message as follows:
hg qnew patch_name -m "message"
Is there a way to do this without Mercurial queues? I just tried:
hg commit -m "message"
but hg just says โnothing has changedโ and does not commit, and I do not see any โforceโ option that would override this.
If you are wondering about my motivation for this: we have a test infrastructure where you click on a special repository, and this will lead to the launch of automatic tests. You need to put a special line in the commit message itself, which says which tests should be run. Obviously, I don't want this line to be there when I click on the real repository. Instead of tweaking the commit twice (adding a special line once and deleting it a second time), I would find it cleaner to just add an empty commit and then discard it - and I can do it with mq, but I would like to find a way do it without mq.
version-control mercurial commit mercurial-queue
HighCommander4 Aug 30 '13 at 21:23 2013-08-30 21:23
source share