Sharing Files in SVN

后端 未结 4 356
清酒与你
清酒与你 2021-01-02 19:50

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
  -         


        
相关标签:
4条回答
  • 2021-01-02 20:27

    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).

    0 讨论(0)
  • 2021-01-02 20:42

    Use SVN 1.6+, it supports files also, see: http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.advanced.externals

    0 讨论(0)
  • 2021-01-02 20:45

    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.

    0 讨论(0)
  • 2021-01-02 20:54

    Is svn:externals what you're after? http://svnbook.red-bean.com/en/1.0/ch07s03.html

    0 讨论(0)
提交回复
热议问题