I am coming from CVS background.
Currently, I have 2 mercurial repositories developed parallel. hello-world-bugfix
and hello-world-feature
(This one is being cloned from hello-world-bugfix
)
Now, I want to merge the bug fixed code from hello-world-bugfix
into hello-world-feature
, so that end of the day, I will get a merged file.
[BUG2 BUG2 BUG2]
START
[BUG1 BUG1 BUG1]
[FEATURE2 FEATURE2 FEATURE2]
Here is how all the things looks like before, pulling and merging. The below two files had already been committed.
Now, I perform pull from hello-world-feature
, to pull changes from hello-world-bugfix
.
Then, I perform update, with always merge
options turned on.
Here is my merged file???
[BUG2 BUG2 BUG2]
START
[BUG1 BUG1 BUG1]
It seems that my previous committed [FEATURE2 FEATURE2 FEATURE2]
being overwritten.
It seems that I shouldn't perform update step, which will not merge feature
with bug
, but overwrite feature
away with bug
. What is the next correct step I should do after pulling? (through TortoiseHg), so that I can get bug fix code, and remain feature code there?
Here is the final repository view of hello-world-feature