Mercurial Queues - exporting a patch
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
.
source to share
- 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
source to share