如何从上游存储库获取文件的副本?
在我的上游,在一个存储库中,我对它具有零控制权,并且只能通过 http 访问,有一个我想要从中获取文件的标签。
如何仅下载文件,而不设置本地存储库,也不下载任何变更集?我只想要文件的副本,因为它们具有特定的修订号(或命名标签)。
有很多涉及 hg archive
的解决方案,但必须从存储库本身运行。
Upstream of me, in a repository I have zero control over and only http access to, there's a tag I want the files from.
How do I download just the files, without setting up a local repo and without downloading any changesets? I only want a copy of the files as they are at a specific revision number (or named tag).
There are a lot of solutions to this involving hg archive
but that has to be run from within the repository itself.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果上游存储库可通过 hgweb/http 访问,并且它们已打开存档,则会出现如下 URL:
可以采用特定修订或分支或标记名称:
如果他们没有启用该功能,那么您必须克隆整个存储库。
If the upstream repo is available over hgweb/http and they have archives turned on there will be a URL like:
which can take specific revisions or branch or tag names:
If they don't have that enabled then you have to clone the whole repo.