Mercurial Queues - exporting a patch

I have a Mercurial queue patch on my local machine that I need to share with a colleague that I would rather not push to the upstream repository. Is there an easy way that I can package this patch and share it with it?

+3


source to share


2 answers


mq stores patches in a folder .hg\patches\

as files without an extension.

You can copy or upload these files and use them hg qimport FILE

on the other end to queue them up for fixes in another repository. Note, if you copy it directly to the target folder .hg\patches\

, you will need to use a switch --existing

, so it hg

knows not to create a file.



The folder .hg/patches

, by the way, can be a repository in itself for tracking changes to the patch queue itself. You can run it with hg init --mq

and commit the current fixes with hg com --mq

.

+4


source


  • If both sides have MQ, you can pull | push -mq option
  • You can use the MQCollab extension
  • You can copy the required mq-patch from the patch directory (default: .hg / patches) and transfer it in any way: patch is a regular diff that can be applied to "foreign" files in the repository even without MQ


0


source







All Articles