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

Neo Jia neojia at gmail.com
Tue Mar 4 19:42:41 CST 2008


On Tue, Mar 4, 2008 at 4:27 PM, Michael Smith
<michael.smith at thalesatm.com> wrote:
> 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.

Without pulling the changesets? I don't think you can use hg export. I
got an "unknown revision" error".

Thanks,
Neo

>  --
>  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.
>  _______________________________________________
>  Mercurial mailing list
>  Mercurial at selenic.com
>  http://selenic.com/mailman/listinfo/mercurial
>



-- 
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!


More information about the Mercurial mailing list