newbie - sharing some files in a repository

Mads Kiilerich mads at kiilerich.com
Fri Apr 30 11:07:04 UTC 2010


>
>
> I’m a complete newbie here…just started reading docs and going through 
> tutorials yesterday.
>
> I have a question about how to setup a set of repositories to handle a 
> situation like this. We have multiple projects (VS solutions) in a 
> product. Many of the projects share a set of files through a 
> SourceSafe database. The shared files are a set of c++ base class 
> files. All the projects that share those base class files also have 
> their own specific derived class files which aren’t shared. The 
> derived class files have the same name across all the projects (ie, 
> ‘Derived.cpp’) but contain code specific to the project. This allows 
> us to update/fix base class files in one place.
>
> How can I create a similar structure using Mercurial repositories?
>
>

You can try to use subrepos.

/Mads




More information about the Mercurial mailing list