
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Distinction Between Status and Update
|
247
svn diff
Shows you the details of your changes (see “svn diff” in Chapter 3)
svn revert
Removes your local changes (see “svn revert” in Chapter 3)
Also, the cached pristine files allow the Subversion client to send differences when
committing, which CVS cannot do.
The last subcommand in the list is new; it will not only remove local mods, but it
will unschedule operations such as adds and deletes. It’s the preferred way to revert a
file: running
rm file; svn update will still work, but it blurs the purpose of updat-
ing. And, while we’re on this subject…
Distinction Between Status and Update
In Subversion, we’ve tried to erase a lot of the confusion between the cvs status and
cvs update commands.
The
cvs status command has two purposes: first, to show the user any local modifi-
cations in the working copy, and second, to show the user which files are out-of-
date. Unfortunately, because of CVS’s hard-to-read status output, many CVS users
don’t take advantage of this command at all. Instead, they’ve developed a habit of
running
cvs up or cvs up -n to quickly see their mods. If users forget to use the -n
option, this has the side effect of merging repository changes that you may not be
ready to deal with!
With Subversion, we’ve tried to remove this muddle ...