
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Basic Work Cycle
|
27
Every directory in a working copy contains an administrative area, a
subdirectory named .svn. Usually, directory listing commands won’t
show this subdirectory, but it is nevertheless an important directory.
Whatever you do, don’t delete or change anything in the administra-
tive area! Subversion depends on it to manage your working copy.
While you can certainly check out a working copy with the URL of the repository as
the only argument, you can also specify a directory after your repository URL. This
places your working copy into a new directory that you name. For example:
$ svn checkout http://svn.collab.net/repos/svn/trunk subv
A subv/subversion.dsw
A subv/svn_check.dsp
A subv/COMMITTERS
A subv/configure.in
A subv/IDEAS
...
Checked out revision 2499.
That will place your working copy in a directory named subv instead of a directory
named
trunk, as we did previously.
Basic Work Cycle
Subversion has numerous features, options, bells, and whistles, but on a day-to-day
basis, odds are that you will only use a few of them. In this section we run through
the most common things that you might find yourself doing with Subversion in the
course of a day’s work.
The typical work cycle looks like this:
• Update your working copy
•
svn update
• Make changes
•
svn add
• svn delete
• svn copy ...