On Windows, can we put different folders in 1 SVN repository?

有些话、适合烂在心里 提交于 2019-12-25 06:44:39

问题


Related Question:
On Windows, can we put different folders in 1 Git or Mercurial (hg) repository?

On Windows, can we put different folders in 1 SVN repository?

Such as putting

c:\ror
c:\software projects\ruby
c:\js test
d:\peter_website

all in 1 SVN repository called code ?


回答1:


Yes you could. As a svn repository is just a directory structure you could one by one upload them like this. Later you can checkout the whole trunk.

trunk/ror
trunk/ruby
trunk/js_test
trunk/peter_website

But as I said in the other question about git and hg, you can better keep logical different things separated! And things that are the same, in the same directory structure.




回答2:


Yes, if you first create the directory structure like Peter Smit wrote, you can check out the individual subdirectories where you want them.

C:\>svn co http://yoursvnserver/repos/code/trunk/ror

C:\software projects>svn co http://yoursvnserver/repos/code/trunk/ruby

C:\>svn co http://yoursvnserver/repos/code/trunk/js_test

D:\>svn co http://yoursvnserver/repos/code/trunk/peter_website

Then you can delete the working copy where you had http://yoursvnserver/repos/code/trunk checked out if you want.



来源:https://stackoverflow.com/questions/3027796/on-windows-can-we-put-different-folders-in-1-svn-repository

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!