开发者

How to store static content across branches in a single location in version control

开发者 https://www.devze.com 2022-12-30 11:09 出处:网络
[Just a random thought] I have a pdf doc that is downloaded when the user clicks on \'help\' on my website. Now, this is a pretty huge document and is saved in version control (SVN) and is thus copie

[Just a random thought]

I have a pdf doc that is downloaded when the user clicks on 'help' on my website. Now, this is a pretty huge document and is saved in version control (SVN) and is thus copied for all branches that exist in SVN. This is static content and something that developers are not w开发者_StackOverflow社区orking on, and does not change often. Is there a more efficient way to store it (that would not hamper local deployments) that would make SVN checkouts and updates relatively faster.

I know the benefit we get is not huge, this is something that came to my head none the less.


You can put your pdf in separate dir:

/trunk
/branches
/doc <- here it is

and then “mount” it to your working copies using SVN’s externals mechanism


I would suggest to create the following structure under trunk

/trunk
   +-- doc 
   +-- src

This means every developer can checkout trunk/src do branching as always (svn cp ^/trunk ^/branches/NEWBRNACH) etc. If you need to change the doc just checkout trunk/doc instead...I would prefer that, cause the doc is in relation with your project and is under change like the source code.

0

精彩评论

暂无评论...
验证码 换一张
取 消