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

Re: Repository organization

From: Brass Tilde <brasstilde_at_insightbb.com>
Date: 2004-11-19 19:40:49 CET

> > OK, I'm reading through "The Book", in Chapter 3, and I thought the
> > recommended directory structure in a repository with multiple projects
> > would look something like this:
> >
> > /trunk/proj1

> > /branches/proj1

> > /tags/proj1

> What in chapter 3 gave you that impression? I just glanced through it,
> and don't see why you'd get that idea.

I phrased that poorly. When I read the Introduction, I was under the
impression the recommended structure was as above; reading Chapter 3 changed
my mind.

Why? If execute the instructions in the Introduction (Rev 11176M, Page 6)
to create and populate a new repository on Win2K SP4 using SVN 1.1.1 (client
and server):

:: Some setup
   md \path\to
   md \tmp\project\branches
   md \tmp\project\tags
   md \tmp\project\trunk

   echo something > \tmp\project\trunk\foo.c
   echo else > \tmp\project\trunk\bar.c
   echo entirely > \tmp\project\trunk\makefile

:: commands from "the book"
   svnadmin create /path/to/repos --fs-type fsfs

   svn import /tmp/project file:///path/to/repos -m "initial import"

and then execute "svn list file:///path/to/repos -v -R" on that repository,
I get the following:

      1 Brad Nov 19 13:21 branches/
      1 Brad Nov 19 13:21 tags/
      1 Brad Nov 19 13:21 trunk/
      1 Brad 12 Nov 19 13:21 trunk/bar.c
      1 Brad 12 Nov 19 13:21 trunk/foo.c
      1 Brad 12 Nov 19 13:21 trunk/makefile

In this simple example, everything is directly off the root of the
repository. I recklessly let this color everything else I was reading until
I started seeing other examples (the collab.net SVN repository, primarily)
where the project name appeared before "trunk".

More experimentation showed that appending the project name to the
repository, when importing, ala:

  svn import /tmp/project file:///path/to/repos/proj1 -m "initial import"

creates the project in another directory off the root, which makes much more
sense to me.

Yes, I'm slow on the pickup sometimes, but I'll probably get it eventually.

Brad

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Nov 19 19:41:27 2004

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