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

Re: advice for repository layout?

From: Nicolas Goutte <nicolasg_at_snafu.de>
Date: 2005-06-13 12:03:41 CEST

On Monday 13 June 2005 04:55, Corey wrote:
> 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?

As far as I have understood, the "trunk/branches/tags" concept, you add the
directories only at the top level.

So if you create a project with
svnadmin create myproject

the recommendation is to create the three directories

So in your case, you should create:

(Compared to CVS, in Subversion there are only branches, even "trunk" and

> ( .../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!

No, that is not what is intended.

You should have "trunk" only one time:
svn co file:///usr/local/svn/ToolBox/trunk/perl/bin/
assuming that ToolBox is your project.

> 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?

It was a misunderstanding.

> Many thanks for clueing me in!

Have a nice day!

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jun 13 12:14:23 2005

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.