HG克隆标签或分支
我们正在使用以下命令来克隆存储库;
hg clone -u v1.0 \\server\abc\def my_repo
如果存储库同时包含名为“ V1.0”的标签和分支,则命令将更新为标签修订版。在这种情况下,我们如何强制HG克隆命令选择分支?我们不想使用- 分支
选项,因为某些存储库可能只包含标签而不包含分支。
尝试了此命令的各种组合(带有单引号和双引号),他们都报告了“未知修订”
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
是否使用RevSet支持HG克隆支持?
请指教 :-)
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 :-)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论