Export changesets since a revision + 1
David Demelier
demelier.david at gmail.com
Wed Sep 7 13:14:32 UTC 2016
Hello,
I'm guessing what is the easiest way to export a patch since the last
revision + 1 pulled locally from an upstream repository.
Example, I clone a repository that use the @ bookmark where I don't
have write access, I commit two changesets that I want to send as a
patch later.
hg clone repo-url && cd repo-url
hg book -i @ (don't move @ to reference it as the last upstream commit)
... work ...
hg ci -m "feature added"
... work ...
hg ci -m "tests"
Now, @ still points to the last revision upstream, I want to export
descendants of @ but not including @.
hg export -r "@::." will export 3 changesets, one at @ and the two added by me.
It seems that hg export -r ". % @" works but I'm not sure if it's the
correct one :)
Do you have an easy revset to remember? Or any other recommandations?
I know that exporting only one commit is preferred but I'm thinking in
case of a really big patch that requires much more commits :)
Regards,
--
Demelier David
More information about the Mercurial
mailing list