Can I emulate svn:externals using mercurial?

后端 未结 4 1626
鱼传尺愫
鱼传尺愫 2020-12-13 01:35

We are considering a move from SVN to Mercurial, and have encountered a stumbling block.

We currently use svn:externals to automatically pull a common s

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-13 02:08

    There's no good way to do it using mercurial only. The Forest Extension mentioned elsewhere causes more problems that in fixes nowadays. Most folks just use a large repo and include all their components in the repo and then have their build scripts download and use 3rd party libraries -- using maven if they're Java-heads.

    Short answer "fake it in your build process".

    Update:

    In Mercurial 1.3 a new sub repos feature was added. it's like the old forest extension, but started as all new code.

    Subrepos are considered a "feature of last resort".

提交回复
热议问题