nonopolarity
nonopolarity

Reputation: 151006

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

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 ?

Upvotes: 0

Views: 80

Answers (2)

rlovtang
rlovtang

Reputation: 5060

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.

Upvotes: 1

Peter Smit
Peter Smit

Reputation: 28716

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.

Upvotes: 1

Related Questions