Basicly it would be something like:
svnadmin create <repo>
svn co file://<repo>
svn mkdir trunk
svn mkdir branches
svn mkdir tags
svn ci -m "Initial layout"
svn co <repo>/trunk <repo>
And you'll have a checkout of the trunk.
This assumes one trunk/branches/tags setup per repository, the more common layout would be multiple trunk/branches/tags setups per repository.
So, repository layout would be:
etc, etc, etc. I guess you can figure out how to setup such a repository following the instructions in the first part of the mail. (Hint: use svn mkdir <project-a> )
From: Gregory Garretson [mailto:gregory_at_garretson.info]
Sent: Fri 4/11/2008 13:55
Subject: How to set up project directories--SVN book confusion
I'm just getting started with Subversion, so please pardon this
low-level question. I've read the Subversion book, which is generally
excellent, but it has caused me to be confused about how to set up a
In Chapter 5 on "Repository Administration", the book talks about the
virtual filesystem in which data is stored. Then it goes on to discuss
"directory hierarchies within the repositories themselves", and how you
might want to set up your repository, with trunk, branch, and tags
directories. What is not made clear is whether these are (a) directories
in the svn virtual filesystem, or (b) directories in the actual OS
filesystem (prior to checkout).
If they are intended to really be OS directories, the description is
very misleading, since it doesn't say where these should be in relation
to all the other files in the repository, or whether you're meant to set
them up elsewhere in the filesystem.
If they are intended to be directories in the virtual filesystem, there
is no dicussion of how to go about creating them. Going back to Chapter
2, "Basic Usage", there is a section called "Recommended repository
layout", which is a summary of what is said in Chapter 5 and sends you
back there for further information. Then it goes on to tell you how to
do a checkout, which presupposes that the repository has already been
set up. There is a section on importing into a repository, but it
doesn't respect the trunk-branches-tags advice given in the following
section, so it's hard to see how those relate to each other.
So, as briefly as I can phrase it, here is my question: What is the
proper way to create from scratch an svn project using the
Maybe I've missed something rather obvious. That's certainly possible;
if so, please let me know.
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 14:14:02 CEST