Is there any easy way to generate a patch file from "hg incoming" command?

Michael Smith michael.smith at
Tue Mar 4 18:27:11 CST 2008

Neo Jia wrote:
> hi,
> I am trying to convert the upstream submissions to patchsets, so I can
> use MQ on it. But, the "hg incoming" command cannot just print out the
> specified revision. It will print out all the changesets from tip to
> the "revision" I asked.
> Is there any way to make "hg incoming" just print one specific changeset?

You could write a loop based on the output of hg incoming and then use 
hg export to generate a patch for each changeset.
Michael Smith               | 61 386 304 560
Team Leader, Case and Tools | 61 416 062 898
Thales Australia TCC        |    S  37.82329
Melbourne, Victoria         |    E 144.95426
Confidentiality Notice: This e-mail may contain confidential and/or 
privileged information and is intended solely for the addressee(s) 
named. If you have received this information in error, or are advised 
that you have been posted this e-mail by accident, please notify the 
sender by return e-mail, do not redistribute it, delete the e-mail and 
keep no copies.

More information about the Mercurial mailing list