Can I clone part of a Mercurial repository?

前端 未结 7 1106
余生分开走
余生分开走 2020-12-24 01:27

Is it possible to clone part of a Mercurial repository? Let\'s say the repository is quite large, or contains multiple projects, or multiple branches. Can I clone only part

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-24 01:46

    To my knowledge, that's not possible. But compared to Subversrion, cloning the whole repos may not be slower than just a branch from SVN.

    Quoting from UnderstandingMercurial:

    Many SVN/CVS users expect to host related projects together in one repository. This is really not what hg was made for, so you should try a different way of working. This especially means, that you cannot check out only one directory of a repository.

    If you absolutely need to host multiple projects in a kind of meta-repository though, you could try the Subrepositories feature that was introduced with Mercurial 1.3 or the older ForestExtension.

提交回复
热议问题