Push pull with multiple remote locations in mercury

(I'm new to mercurial and version control.)

I am using an open source clone from bitbucket (mercurial). whenever this framework is updated, I run hg pull and hg update to get the latest copy. I have now made some changes to this structure for my own purpose, which I store in another repository on a bitbucket. Now, if the original structure is updated, how can I merge this change in my own repository, keeping my own changes intact.

+3
source share
1 answer

Well, here is the workflow for this.

, , :

3rd:   1---2---3
clone: 1---2---3

bitbucket , :

3rd:   1---2---3
clone: 1---2---3
fork:  1---2---3

"fork" .

bb, :

3rd:   1---2---3
clone: 1---2---3---4---5
fork:  1---2---3---4---5

- , :

3rd:   1---2---3---4'--5'
clone: 1---2---3---4---5
fork:  1---2---3---4---5

" , , .

:

3rd:   1---2---3---4'--5'

clone: 1---2---3---4---5
                \
                 \-6'--7'

fork:  1---2---3---4---5

, :

3rd:   1---2---3---4'--5'

clone: 1---2---3---4---5----8---9---10
                \          /
                 \-6'--7'-/

fork:  1---2---3---4---5

bb:

3rd:   1---2---3---4'--5'

clone: 1---2---3---4---5----8---9---10
                \          /
                 \-6'--7'-/

fork:  1---2---3---4---5----8---9---10
                \          /
                 +-6'--7'-+

, - :

3rd:   1---2---3---4'--5'--6'--7'

clone: 1---2---3---4---5----8---9---10
                \          /
                 +-6'--7'-+

fork:  1---2---3---4---5----8---9---10
                \          /
                 +-6'--7'-+

, , :

3rd:   1---2---3---4'--5'--6'--7'

clone: 1---2---3---4---5----8---9---10
                \          /
                 +-6'--7'-+--11'---12'


fork:  1---2---3---4---5----8---9---10
                \          /
                 +-6'--7'-+

:

3rd:   1---2---3---4'--5'--6'--7'

clone: 1---2---3---4---5----8---9---10---13
                \          /            /
                 +-6'--7'-+--11'---12'-+


fork:  1---2---3---4---5----8---9---10
                \          /
                 \-6'--7'-/

:

3rd:   1---2---3---4'--5'--6'--7'

clone: 1---2---3---4---5----8---9---10---13
                \          /            /
                 +-6'--7'-+--11'---12'-+     <-- 11' and 12' corresponds to 6'/7'

fork:  1---2---3---4---5----8---9---10---13
                \          /            /
                 +-6'--7'-+--11'---12'-+
+6

Source: https://habr.com/ru/post/1785163/


All Articles