Check existing patches into a new Mercurial Queue repository

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Check existing patches into a new Mercurial Queue repository

Stephen Rasku-3
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.


...Stephen

_______________________________________________
Mercurial mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial
Reply | Threaded
Open this post in threaded view
|

Re: Check existing patches into a new Mercurial Queue repository

Pierre-Yves David-2
manually checking them in should be fine.

I think `hg init --mq` would work well too. but to be honest I have not
used mq for almost 10 years.

On 7/6/20 3:47 PM, Stephen Rasku wrote:

> 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
>
> _______________________________________________
> Mercurial mailing list
> [hidden email]
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>

--
Pierre-Yves David
_______________________________________________
Mercurial mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial