I have a mercurial queue patch on my local machine that I need to share with a coworker that I’d prefer not to commit to an upstream repository. Is there a simple way that I can package that patch and share it with him?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
mq stores the patches in the
.hg\patches\folder as files without an extension.You can copy or email those files and use
hg qimport FILEon the other end to bring them into the patch queue on the other repository. Note that if you copy it directly to the target.hg\patches\folder, you’ll need to use the--existingswitch sohgknows to not create the file.The
.hg/patchesfolder, by the way, can be a repository in itself to track changes in the patch queue itself. You can init it withhg init --mqand commit the current patches byhg com --mq.