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

Re: about repos layout and common practice

From: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 7 Oct 2009 17:32:33 -0400

If the repository is for your own personal use, you don't need so many
levels. I have a repository setup like this:

svn://branches
svn://tags
svn://proj1
svn://proj2
...

I simply have my projects as the first level of the repository. There is no
"trunk" directory. The "branches" and "tags" directory are there , but I
rarely ever use them. When I do a branch or a tag, I do something like this:

*$ svn cp svn://lh/proj1 svn://lh/tags/PROJ1-1.0*

This makes checkouts quite simple:

*$ svn co svn://lh/proj1*

Note that I use the "svn" protocol. It's simpler than http:// and I don't
have to setup an Apache server. As an additional bonus, you remove another
level from the URL. http needs both the server and repository name. svn only
needs the server (and I've aliased localhost to "lh". I do have to have the
svnserve command start up, but I can do this manually, or start it up when I
log in. (Either manually or via my .profile script)

As others have pointed out, you really don't use the multi-level URLs once
you've checked out a project. All the commands pretty much work on the local
directory. However, it's nice to have short URLs when you do need them.

On Wed, Oct 7, 2009 at 11:49 AM, Harry Putnam <reader_at_newsguy.com> wrote:

> I've been a long time cvs user... but my usage has always been
> personal... no big shared projects or such.
>
> I'm starting to setup subversion and reading about common layouts in
> the docs.. I wonder how to get a little shorter path.
>
> Example... according to the docs:
>
> repo/
> myproj/
> trunk/
> project_files/
> branches/
> tags/
>
> So the working files are already 3 layers deep. That's a fair bit of
> path just to get started.
>
> I wondered what people do to get around that or do you all just live
> with it?
>
> Maybe ..symlinks? or some completely different layout from the start?
>
> A few examples from working repos of your layouts would be greatly
> appreciated here.
>
> ------------------------------------------------------
>
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2404567
>
> To unsubscribe from this discussion, e-mail: [
> users-unsubscribe_at_subversion.tigris.org].
>

-- 
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2404695
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-07 23:33:21 CEST

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