How to develop on a branch in HG?
branch, dvcs, mercurial, version-control
Solution
$ hg branch experimental
(edit file)
$ hg commit
$ hg update default
Problem
I would like to do some experimental work in a hg project. So I would like to create branch, commit to it. And if the experiment works, I can merge it back to main branch. In git, I can do ``` $ git branch experimental $ git checkout experimental (edit file) $ git commit -a $ git checkout master ``` I've read A Guide to Branching in Mercurial. It said `hg branch feature`. But what is next? I don't follow.