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

advice for repository layout?

From: Corey <corey_s_at_qwest.net>
Date: 2005-06-13 04:55:20 CEST

Hello!

I've just moved from cvs to subversion, and I'm in the midst of completely
restructuring my old personal code repository. I've been closely reading the
subversion handbook online and have followed the suggestion of creating
branches, tags, and trunk dirs for each project.

However, I could use some pointers/advice regarding people's opinions of how
best to set up a new repository.

First, as root, I created the following directory to hold all current and
future projects:

/usr/local/svn

Then, as root, I ran 'svnadmin create /usr/local/svn/ToolBox' - to create my
first repository.

Here is where my first question comes.

Under .../ToolBox, I plan to have a structure that looks something like this:

.../perl
.../perl/bin
.../perl/lib
.../ruby
.../ruby/bin
.../ruby/lib

Now, should I create 'branches', 'tags' and 'trunk' directories under _every_
one of those above directories? Should I do the same for the .../ToolBox
repository itself?
( .../ToolBox/branches, .../ToolBox/tags, .../ToolBox/trunk )

My gut feeling says I should just go ahead and do so, because "you never
know"... though it's unlikely, perhaps at some point it would make sense to
be able to branch on such a finely granular scale.

But the problem, is how messy that would look when I want to actualy work and
checkout the projects in that repository:

'svn co file:///usr/local/svn/ToolBox/trunk/perl/trunk/bin/trunk' ... for
instance, looks and seems pretty outlandish!

Is that actualy somewhat "normal" in subversion-land, or is it really strange
and unheard of or not recommened? Am I missing something, or am I on the
right track?

Also, this may sound like naive or stupid question - but is there any subtle
sort of functional or semantic difference between a "repository" and a
"project"? Does/should each "project" have its own "repository", or can/does
a single "repository" contain many "projects"?

Many thanks for clueing me in!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jun 13 04:57:38 2005

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