
846
|
Chapter 14: The Subversion Version Control System
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
Subversion releases available as standalone tar archives, which you can use to
build your initial Subversion client. You can get these from the main web site,
http://subversion.tigris.org. Once there, select the “Downloads” link. You may
choose to download a binary distribution (Red Hat RPM file, Debian package,
etc.), if one is available. This is the easiest road to take. Or you may choose to
download source code and build your own.
Using Subversion: A Quick Tour
This section provides a very quick tour of using Subversion for version control.
We start with the initial version of a project for importing into Subversion:
$ find /tmp/hello -print Show directory layout
/tmp/hello
/tmp/hello/branches Directory for branch development
/tmp/hello/tags Directory for tagged releases
/tmp/hello/trunk
/tmp/hello/trunk/hello.c Mainline development is done on the trunk
/tmp/hello/trunk/Makefile
/tmp/hello/trunk/README
The next steps are to create the repository and then to import the project into it:
$ svnadmin create /path/to/svnrepos
$ svn import /tmp/hello file:///path/to/svnrepos -m "initial import"
Adding /tmp/hello/trunk
Adding /tmp/hello/trunk/hello.c
Adding /tmp/hello/trunk/Makefile
Adding /tmp/hello/trunk/README
Adding /tmp/hello/branches
Adding ...