This is my first time I used DVCS, and also as a lone developer, the first time I really used branches, so maybe I missed something.
I have a remote repository from which I pulled out files and started working. Changes have been pushed to the remote repository, and of course this simple script works just fine.
Now that my web application has some stable features, I would like to start deploying it, and so I cloned the remote repository into a new branch / stable directory outside of my working directory for the default branch and used:
hg branch stable
to create a new named branch. I created a bunch of deployment scripts that are only needed by a stable branch, and I completed them as needed. It worked again.
Now that I’ve returned to my original working directory to work on some of the new features, I found out that Mercurial only insists that one of them is in the remote repository. In other words, I would have to merge the two branches (default and stable), adding my default branch to the unfinished deployment script to go to the main repository. This can get worse if I had to make changes to the file in my stable deployment branch.
How to save my named branches separately in Mercurial? Do I need to create two separate remote repositories? In this case, the named branches lose their value. Did I miss something?
branch mercurial
Praveen angyan
source share