Mercurial 仅同步中央存储库中的选择性文件夹
我有一个中央 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来你想要的是 Mercurial 的子存储库
Sounds like what you want is Mercurial's Subrepositories
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.