
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
20
|
Chapter 2: Basic Concepts
How Working Copies Track the Repository
For each file in a working directory, Subversion records two essential pieces of infor-
mation in the .svn/ administrative area:
• what revision your working file is based on (this is called the file’s working revi-
sion)
• a timestamp recording when the local copy was last updated by the repository.
Given this information, by talking to the repository, Subversion can tell which of the
following four states a working file is in:
Unchanged, and current
The file is unchanged in the working directory, and no changes to that file have
been committed to the repository since its working revision. A
svn commit of the
file will do nothing, and an
svn update of the file will do nothing.
Locally changed, and current
The file has been changed in the working directory, and no changes to that file
have been committed to the repository since its base revision. There are local
changes that have not been committed to the repository; thus an
svn commit of
the file will succeed in publishing your changes, and an
svn update of the file will
do nothing.
Unchanged, and out-of-date
The file has not been changed in the working directory, but it has been changed
in the repository. The file should eventually be updated, to make it current with
the