Exporting MQ patches

Giorgos Keramidas keramida at ceid.upatras.gr
Sun Aug 5 09:52:20 CDT 2007


On 2007-08-05 12:49, Ben Hood <0x6e6562 at gmail.com> wrote:
> Hi,
> 
> I'm searching for a command that stacks the patches in a series up
> into a single patch file.
> 
> This command from the MQ wiki does the trick
> 
> hg diff -r $(hg parents -r qbase --template '#rev#') -r qtip
> 
> but it is a bit cryptic to memorize.
> 
> Ideally I'm looking for something like
> 
> hg qexport STARTPATCH:ENDPATCH

Err, isn't it much easier to type?

	hg diff --git -r qparent:qtip > exported.patch

The qexport command sounds nice, but it's easy to do with:

	hg export --git qparent:qtip

Unless you had something else in mind?

- Giorgos



More information about the Mercurial mailing list