Cloning Repository With MQ Patches

Stephen Rasku mercurial at srasku.net
Thu Oct 20 18:14:32 UTC 2016


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:

   1. Unapply the patches on the source repository
   2. Create a patch repository
   3. Clone the repository to new machine
   4. Clone the patch repository to .hg/patches on the new machine
   5. Apply the patches on the new machine

Is there a simpler way?

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


More information about the Mercurial mailing list