I heard that the only way to create a branch in a Mercurial repository is to make changes in the working copy, then commit them to a new branch.
In Subversion, I can create a branch without having to make changes (by copying trunk
to a path under tags
) - is it possible to do this in Mercurial as well?
I've currently only seen TortoiseHg, so it's possible this can only be done via the command-line tool and I don't know it.
My workflow for this is:
- Create feature branch.
- Do some work in that feature branch.
- Create a release candidate branch.
- Merge feature(s) to release candidate branch.
- Deploy, test, fix deploy, test, fix release candidate branch.
- Merge release candidate branch to trunk.
Many thanks in advance.