Mercurial - how to fetch latest changes from parent of fork?

后端 未结 2 1277
小鲜肉
小鲜肉 2021-02-12 21:29

I\'ve been dabbling with Mercurial for a short while now, and I\'ve now set up several projects on BitBucket, one forking off of the other.

I\'ve been able to make chang

相关标签:
2条回答
  • 2021-02-12 22:05

    Just perform the pull with the source repository as an argument. It will pull all the changes done after your previous pull (or from the time you forked the project, if no pulls were performed).

    After that you will have some additional heads, which you have to merge with your ones.

    0 讨论(0)
  • 2021-02-12 22:20

    Here are 3 essential steps:

    hg pull -u path_to_parent
    hg merge
    hg commit -m"updates from parent"
    

    Or you could install fetch extension that combines all these steps:

    hg fetch path_to_parent
    
    0 讨论(0)
提交回复
热议问题