hg export question
Martin Geisler
mg at aragost.com
Thu May 12 16:58:17 UTC 2011
"Josh Malinski" <JMalinski at anasazisoftware.com> writes:
> I am trying to export a range of revisions for a given branch (for
> example purposes I'll use default). I want to use these patches
> against a test repo for validation and compiling purposes. I know if I
> use something like the following hg export --git -o %h.patch 1:5 I
> will get all of the revisions from 1 to 5, but only 2 of the patches
> are on default and I don't want to include the others as they are on
> other branches.
>
> Any advice as to how to go about this? Or is there better
> functionality to get at this information besides export?
Use '1::5' operator instead of '1:5'. This will follow the graph instead
of just selecting changesets with revisions numbers in the range 1-5.
You can select many interesting things with our query language:
http://selenic.com/hg/help/revsets
--
Martin Geisler
aragost Trifork
Professional Mercurial support
http://mercurial.aragost.com/kick-start/
More information about the Mercurial
mailing list