开发者

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. 开发者_如何学JAVA 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?


hg transplant


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜