How do people manage changes to common library files stored across mutiple (Mercurial) repositories?

后端 未结 3 2088
孤城傲影
孤城傲影 2021-01-03 09:04

This is perhaps not a question unique to Mercurial, but that\'s the SCM that I\'ve been using most lately.

I work on multiple projects and tend to copy source code f

3条回答
  •  忘掉有多难
    2021-01-03 09:36

    I'd recommend against your "copy the sourcecode" practice but use binary distribution for your custom libraries instead. These binaries are checked in along the sourcecode.

    • reduces build-time
    • no overhead of tracking changes in all copies of the library
    • you can use different versions of the same library in different projects.

    EDIT: And for the issue with "common" or "toolbox" libaries in general, read this post from ayende.

提交回复
热议问题