HG克隆标签或分支

发布于 2025-02-08 10:12:53 字数 474 浏览 2 评论 0原文

我们正在使用以下命令来克隆存储库;

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文