Mercurial 仅同步中央存储库中的选择性文件夹

发布于 2024-12-01 05:11:12 字数 339 浏览 4 评论 0原文

我有一个中央 Mercurial 存储库,其中有许多文件夹和代码。我希望能够仅同步 Windows 中的选择性文件夹,以便能够构建项目和 Linux 中的所有文件夹,以在 Linux 中构建相同的项目。从中央存储库同步所有文件夹很容易

hg clone <repo address>/repo

,但如何使用克隆命令

(类似于 Perforce 的 Workspace 等效命令)仅同步选择性文件夹。

我想我们可以用一些“调用”命令编写一个脚本,我尝试用谷歌搜索它,但找不到正确的指针。

有人可以将我链接到它吗?

提前致谢

I have a central mercurial repository, and have many folders and code in there. I want to be able to sync only selective folders in my windows to be able to build the project and all folders in linux to build the same project n linux. Syncing all folders from central repository is easy

hg clone <repo address>/repo

but how do i sync only selective folders using the clone command

Something like Perforce's Workspace equivalent.

I guess we can write a script with some 'call' command, i tried googling for it, and could not find proper pointers to it.

Can somebody link me to it please.

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

走野 2024-12-08 05:11:12

听起来你想要的是 Mercurial 的子存储库

Sounds like what you want is Mercurial's Subrepositories

赏烟花じ飞满天 2024-12-08 05:11:12

Mercurial 不能按目录工作。它对变更集进行操作,并且变更集对于存储库来说是全局的。所以,不,你不能只克隆一个目录,你只能克隆整个存储库。

Mercurial doesn't work on a per-directory basis. It operates on changesets, and changesets are global to the repository. So, no, you cannot clone only one directory, you can only clone the entire repo.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文