Howto transplant changes of a certain changeset only for one file?

Greg Ward greg-hg at gerg.ca
Wed Jan 13 20:53:07 CST 2010


On Wed, Jan 13, 2010 at 10:35 AM, Marko Käning <mk362 at mch.osram.de> wrote:
> I have two branches and want to merge in some changes made on one branch
> into the other.
>
> The transplant extension does in principle what I want, but would - of
> course - transplant all changes of a specific changeset.
>
> What I want to achieve is that only changes made to ONE specific file are
> carried out. So this won't be a fully transplanted changeset, rather a
> subset of its changes.
>
> How do I achieve this in a clean way with hg?

hg diff -c <rev> <file> | hg import -m"Partial transplant of <rev>" -

Disclaimer: completely untested.  Try before you buy.  ;-)

Greg


More information about the Mercurial mailing list