I am fairly new to mercurial and version control in general. I am using bitbucket and TortoiseHg. I wanted to manage my project with one stable and one dev branch. Making a branch named ‘dev’ was easy. Now I am about to finish current iteration and hence want to merge the dev branch into the ‘default’ branch. I have tried searching but to no avail.
Also I would like to confirm it again. Merging my dev branch into stable means my stable code will be replaced with the newer dev code, right? Also what should I do? Should I make a completely diffrent repo for dev or branch it in the same repo? A different repo means I can fix bugs in one and ‘push’ it into the other. But can the same be done with branches? if yes then how?
If
stableanddevare named branches in the same repository, then to mergedevintostable, you switch tostableand do a merge:You might want to check out the docs for
hg resolvein case there are merge conflicts that can’t be resolved.About moving a specific changeset to another branch you might want to check out
hg transplant