
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
106
|
Chapter 5: Repository Administration
$ mkdir projectB/tags
...
$ svn import . file:///path/to/repos --message 'Initial repository layout'
Adding projectA
Adding projectA/trunk
Adding projectA/branches
Adding projectA/tags
Adding projectB
Adding projectB/trunk
Adding projectB/branches
Adding projectB/tags
...
Committed revision 1.
$ cd ..
$ rm -rf tmpdir
$
You can verify the results of the import by running the svn list command:
$ svn list --verbose file:///path/to/repos
1 harry May 08 21:48 projectA/
1 harry May 08 21:48 projectB/
...
$
Once you have your skeletal layout in place, you can begin importing actual project
data into your repository, if any such data exists yet. Once again, there are several
ways to do this. You could use the
svn import command. You could check out a
working copy from your new repository, move and arrange project data inside the
working copy, and use the
svn add and svn commit commands. But once we start
talking about such things, we’re no longer discussing repository administration. If
you aren’t already familiar with the
svn client program, see Chapter 3.
Summary
By now you should have a basic understanding of how to create, configure, and
maintain Subversion repositories. We introduced you to the various tools that assist
you with this task. Throughout the chapter,