
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Adding Projects
|
105
Note that it doesn’t matter where in your repository each project root is located. If
you have only one project per repository, the logical place to put each project root is
at the root of that project’s respective repository. If you have multiple projects, you
might want to arrange them in groups inside the repository, perhaps putting projects
with similar goals or shared code in the same subdirectory, or maybe just grouping
them alphabetically. Such an arrangment might look like:
/
utils/
calc/
trunk/
tags/
branches/
calendar/
trunk/
tags/
branches/
...
office/
spreadsheet/
trunk/
tags/
branches/
...
Lay out your repository in whatever way you see fit. Subversion does not expect or
enforce a layout schema—in its eyes, a directory is a directory is a directory. Ulti-
mately, you should choose the repository arrangement that meets the needs of the
people who work on the projects that live there.
Creating the Layout and Importing Initial Data
After deciding how to arrange the projects in your repository, you’ll probably want
to actually populate the repository with that layout and with initial project data.
There are a couple of ways to do this in Subversion. You could use the
svn mkdir
command (see Chapter 9) to create each directory in your skeletal repository layout, ...