How to avoid this (and I know that itβs not useful right now, sorry) not just use Mercurial Queues, mq, but use it with the patch repository. Mercurial / mq has great support for this.
When you first create the queue, you do:
hg qinit --create-repo
(instead of just hg qinit ), which creates a new Mercurial repository in your .hg/patches directory. Then you can use:
hg commit
to commit all your patch files and return them back would be simple:
hg revert --mq
On the bottom line, and again I know that this does not help you now, but maybe it will help the next guy or you later: if you write code and it does not execute somewhere, "exists" - commit and click earlier and often
source share