[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Installing suberversion to allow versioning on multiple projects

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-06-13 00:10:37 CEST

On Jun 12, 2006, at 23:33, Matthew Kidd wrote:

> The place I am getting confused is right after the "svnadmin
> create /path/to/repos" that creates the central repository. I don't
> want that. I want separate repositories for each project that we
> have resulting in a directory structure like below:
>
> projectA
> /trunk
> /branches
> /tags
> projectB
> /trunk
> /branches
> /tags
> projectC
> /trunk
> /branches
> /tags
> .....etc
>
> Do I need to create central repositories for each project? If so
> how do the directories created via the "svnadmin create" factor in
> to the directory structure I want above?

Yes, if you want separate repositories (and separate repository
revision numbers) for each project, you would "svnadmin create" a
repository for each project:

svnadmin create /path/to/projectA
svnadmin create /path/to/projectB
svnadmin create /path/to/projectC

And you could then create the empty directory structure in each:

svn mkdir \
file:///path/to/projectA/trunk \
file:///path/to/projectA/branches \
file:///path/to/projectA/tags \
-m "Creating empty trunk / branches / tags directories in projectA"

And so on for the other projects.

If you're serving these repositories with Apache 2, then the easiest
would be to point to the directory all the repositories are in ("/
path/to" in my examples above) using the SVNParentPath directive.

> As far as importing the the actual files I have a decent grasp of
> that as well but that seems to be contingent on the answer to the
> former question in that I know that I want the files exported from
> CVS (top skim, no history) placed in the trunk directory but the
> explanation provided in the Quick Start is a little confusing so
> I'm unsure of the actual result of performing the import command.

The "svn import" syntax gets me too if I'm not really concentrating.
I recommend trying a few imports with different scenarios in a test
repository to assure yourself you've got the syntax right before
proceeding to the real import.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 13 00:12:07 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.