News for hackers. Stuff that matters.
Re:Mercurial over Git by stevelosh on Saturday April 17, 2010 @10:28AM (#1273067)
Actually that won't create a new branch.

'hg branch foo' just marks the working directory as branch foo. The 'hg update default' would then update back to the default branch and mark the working directory as being on 'default'.

To really just create a new branch you do: 'hg branch foo; hg commit -m "Create a new branch."' Two steps, but like you said, it's probably not something you'd be doing very often anyway.

There are no comments on this comment yet.