Rob
Rob

Reputation: 78758

Pulling changes between two separate Mercurial repositories

I have two versions of a product and am using separate Hg repositories for each. I have made a change to one (v1.0) and I want to pull just that change into the v2.0 repository. How do I go about this? As far as I can tell, using hg pull -f -r xxxxx \\server\hg\v1.0 will pull in all changes up to the specified revision which isn't what I want.

Is this possible or will I have to add the fix by hand?

Upvotes: 4

Views: 563

Answers (2)

crazyscot
crazyscot

Reputation: 12019

You can use hg incoming -f -r xxx \\server\hg\v1.0 to reveal what would come in from a pull.

Perhaps the transplant extension will do what you want? Something like hg transplant -s \\server\hg\v1.0 with the interactive changeset selector.

If all else fails, you could use hg diff to pull out a patch for just the revision you want.

Upvotes: 3

wRAR
wRAR

Reputation: 25569

hg transplant

Upvotes: 5

Related Questions