
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
24
|
Chapter 3: Guided Tour
COMMITTED
The last revision in which an item changed before (or at)
BASE.
PREV
The revision just before the last revision in which an item changed. (Technically,
COMMITTED - 1.)
Here are some examples of revision keywords in action. Don’t worry if the com-
mands don’t make sense yet; we explain these commands as we go through the chap-
ter:
$ svn diff --revision PREV:COMMITTED foo.c
# shows the last change committed to foo.c
$ svn log --revision HEAD
# shows log message for the latest repository commit
$ svn diff --revision HEAD
# compares your working file (with local mods) to the latest version
# in the repository.
$ svn diff --revision BASE:HEAD foo.c
# compares your "pristine" foo.c (no local mods) with the
# latest version in the repository
$ svn log --revision BASE:HEAD
# shows all commit logs since you last updated
$ svn update --revision PREV foo.c
# rewinds the last change on foo.c.
# (foo.c's working revision is decreased.)
These keywords allow you to perform many common (and helpful) operations with-
out having to look up specific revision numbers or remember the exact revision of
your working copy.
Revision Dates
Anywhere that you specify a revision number or revision keyword, you can also spec-
ify a date by specifying the date inside curly braces { }. You