Check existing patches into a new Mercurial Queue repository

Stephen Rasku mercurial at srasku.net
Mon Jul 6 13:47:46 UTC 2020


I have an existing queue directory with a number of patches already in it.
I am about to fold them into a single commit but I would like to preserve
the original patches before I do that.  How can I do that?

This is what I tried so far:

    $ hg ci --mq
    abort: no queue repository

Then, since I have enough knowledge to be dangerous, I tried to create the
patch repository manually:

    $ cd .hg/patches/
    /Users/me/Code/my-project/.hg/patches
    $ hg init
    $ cd -
    /Users/me/Code/my-project

But when I try to commit, it won't let me:

    $ hg ci --mq
    nothing changed

I guess I can manually check into the patch repository manually as well but
I'm wondering if there's a more canonical way to do it.

Also, I initially asked this question on Stack Overflow[1] but I didn't
get much traction.  Feel free to answer there.  If no-one decides to
do that, I will also post the solution there for ease of access.

Thanks in advance.

[1]
https://stackoverflow.com/questions/62741623/how-can-i-check-existing-patches-into-a-mercurial-queue-repository

...Stephen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial/attachments/20200706/16274a83/attachment.html>


More information about the Mercurial mailing list