We are using the following command to clone repositories;
hg clone -u v1.0 \\server\abc\def my_repo
If the repository contains both a tag and branch that is named "v1.0" then the command will update to the tag revision. In this situation, how can we force the hg clone command to select the branch? We do not want to use the --branch option because some repositories may only contain the tag and not the branch.
Tried various combinations of this command (with single and double quotes) and they all reported "unknown revision"
hg clone -u branch(v1.0) \\server\abc\def my_repo
hg clone -u "branch(v1.0)" \\server\abc\def my_repo
hg clone -u 'branch(v1.0)' \\server\abc\def my_repo
Does hg clone support using revset?
Please advise :-)