Check existing patches into a new Mercurial Queue repository

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu Jul 16 15:40:30 UTC 2020


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
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
> 

-- 
Pierre-Yves David



More information about the Mercurial mailing list