I use Mercurial (with VisualHg) for my source code and I have the following situation.
I'm currently using the default branch and would like to follow the procedure shown at http://stevelosh.com/blog/2010/05/mercurial-workflows-stable-default/ to create a new stable branch.
Here are my questions:
I'm not sure if this approach works properly with Mercurial: I used to use VisualSVN. Thanks.
To create a stable
branch using VisualHg
follow the following steps:
stable
into the box next to it and press OkThis has created your stable
branch and it has the contents of your release except that the tag that you created is still on the default
branch. If you want to move it, you can do that from the workbench as follows:
stable
and click on Tag... on the pop up menuIf you are working with a central repository then you'll need to specify that you want to push the new branch by clicking on the Options button of the TortoiseHg Sync window and ticking the Allow push of a new branch (--new-branch) before you push the change.
In the future, you would merge from default
to stable
and then tag stable
when you want to make another release. To merge changes from default
into stable
do the following:
stable
, right click and then click Update...default
, right click then click Merge with local...To merge the other way, update to default
in step one and merge from stable
in step 3.
To have two folders on your machine for one to contain default
and the other stable
, you would simply clone the repository a second time and keep one updated to the default
branch and the other updated to the stable
branch.