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

Re: How to set up project directories--SVN book confusion

From: Paul Koning <Paul_Koning_at_dell.com>
Date: Fri, 11 Apr 2008 11:01:35 -0400

>>>>> "Gregory" == Gregory Garretson <gregory_at_garretson.info> writes:

 Gregory> I'm just getting started with Subversion, so please pardon
 Gregory> this low-level question. I've read the Subversion book,
 Gregory> which is generally excellent, but it has caused me to be
 Gregory> confused about how to set up a project.

 Gregory> In Chapter 5 on "Repository Administration", the book talks
 Gregory> about the virtual filesystem in which data is stored. Then
 Gregory> it goes on to discuss "directory hierarchies within the
 Gregory> repositories themselves", and how you might want to set up
 Gregory> your repository, with trunk, branch, and tags
 Gregory> directories. What is not made clear is whether these are (a)
 Gregory> directories in the svn virtual filesystem, or (b)
 Gregory> directories in the actual OS filesystem (prior to checkout).

(a).

 Gregory> If they are intended to be directories in the virtual
 Gregory> filesystem, there is no dicussion of how to go about
 Gregory> creating them. Going back to Chapter 2, "Basic Usage", there
 Gregory> is a section called "Recommended repository layout", which
 Gregory> is a summary of what is said in Chapter 5 and sends you back
 Gregory> there for further information. Then it goes on to tell you
 Gregory> how to do a checkout, which presupposes that the repository
 Gregory> has already been set up. There is a section on importing
 Gregory> into a repository, but it doesn't respect the
 Gregory> trunk-branches-tags advice given in the following section,
 Gregory> so it's hard to see how those relate to each other.

 Gregory> So, as briefly as I can phrase it, here is my question: What
 Gregory> is the proper way to create from scratch an svn project
 Gregory> using the trunk-branches-tags setup?

Here's a sample sequence:

[pkoning_at_pkoning-laptop tmp]$ svnadmin create test
[pkoning_at_pkoning-laptop tmp]$ svn co file:///tmp/test test2
Checked out revision 0.
[pkoning_at_pkoning-laptop tmp]$ cd test2
[pkoning_at_pkoning-laptop test2]$ svn mkdir trunk tags branches
A trunk
A tags
A branches
[pkoning_at_pkoning-laptop test2]$ svn ci -m "initial structure"
Adding branches
Adding tags
Adding trunk

Committed revision 1.
[pkoning_at_pkoning-laptop test2]$

        paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-11 17:05:27 CEST

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.