Cloning Repository With MQ Patches

Augie Fackler raf at durin42.com
Thu Oct 20 18:38:52 UTC 2016


On Thu, Oct 20, 2016 at 2:14 PM, Stephen Rasku <mercurial at srasku.net> wrote:
> I want to clone a repository from one machine to another.  It has applied MQ
> patches and they came across as committed changesets.  I don't want to
> commit the base patch as it is a workaround for which I want a more elegant
> solution.
>
> Is there a way to clone a repository such that I can get the patches as
> patches rather than changesets?  The patches were not in a patch repository
> but I can fix that.  I suppose that I can:
>
> Unapply the patches on the source repository
> Create a patch repository
> Clone the repository to new machine
> Clone the patch repository to .hg/patches on the new machine
> Apply the patches on the new machine
>
> Is there a simpler way?

Use a patch repository, then check 'hg help qclone'



More information about the Mercurial mailing list