开发者

Mercurial Syncing only selective folders from Central Repository

I have a central mercurial repository, 开发者_StackOverflow中文版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


Sounds like what you want is Mercurial's Subrepositories


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜