开发者

Forwarding changes from one HG repository to another

I have recently cloned an HG 开发者_开发百科repository into another one, since the project had to be slightly changed and i couldn't keep it with the other codebase.

Some changes though are common, and so needed to be updated in the older repository as well.

How can this be done?

I'd like to know more specifically:

  1. Are changes that are not group together in a commit (sporadic changes i've made to code files) can be somehow grouped together and updated in the 1st repository (the one i cloned from).

  2. If not, how can this be done if i make all changes grouped in the same commit?

  3. Other recommendations for strategies for handling such cases will be great!

Thanks


What problem are you seeing exactly? What have you tried?

Can you clarify the issue, it seems like you are just looking for a way to pull from another repo, in which case:

hg pull -r {RevisionYouWantFromOtherRepo} {pathToSecondRepository}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜