I am in the process of moving from VSS to SVN and I\'m not sure how to share files in SVN.
Basically we have the following structure in VSS
$MOSS
-
We had the same problem. The simple answer is that you can't share files in SVN - in the end we had to restructure our directories and use batch files.
e.g. for source code files that were shared, we moved them to an Include folder, and have all the projects reference that folder.
For binary files that need to be copied to more than one location we store them just once in SVN, and then use batch files to copy them across to the target locations on each developers machine (or also on the build machine).
Use SVN 1.6+, it supports files also, see: http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.advanced.externals
I second Rick on this. To me, the whole concept of "sharing" (= having the same file occur in two places at checkouts) is weird.
I guess each versioning system has its own mindset implicitly attached to it. I've tried Perforce and I've stayed with Subversion. Bringing your projects to it without changing the mindset and maybe workflow may be flawed, though.
The Book on svn is a worthy read, to get some of the mindset submerged before doing the plunge. You can select some sections only, you don't have to read all at once.
Is svn:externals what you're after? http://svnbook.red-bean.com/en/1.0/ch07s03.html