[cvsnt] Sharing a files between different projects
arthur.barrett at march-hare.com
Tue Jan 6 19:43:18 GMT 2009
> I have two projects in the repository. Some of the files are
> common in these two projects and some are different.
> I want to share the files that are Same between these
> projects. How can I archive this?
> Changes in common files should be reflected to both projects.
> Any pointer in this would be appreciated.. Version of CVS
> I'm using is 2.5.03
The question you are asking is most commonly asked by people who have
previously used Visual Source Safe.
The CVSROOT/modules2 file or the older CVSROOT/modules file can help
with this sort of thing:
Generally the best CM independent solution is to organise your project
source code hierarchy within the CM tool in such a way that 'common'
code is in a project/module/directory of it's own so it can be checked
out and managed independently of other projects, ie:
Then you define a module where 'projecta' = 'proja'+'common' so when a
person does 'cvs co projecta' they get:
If your server is running on Linux then you can 'cheat' by simply
symbolically linking the RCS file into two directories (though this may
cause locking conflicts if the files are very busy).
More information about the cvsnt