Mercurial clone from a branch


We have a repository with three named branches, I wanted to clone one of the branches. Is there a mercurial command to do that? If I provide the path (of branch) with hg clone I get 404 error.


Answers:


hg clone http://your/repo -r branchname should do the trick.