
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
svn revert
|
221
Switches
--targets FILENAME
--recursive (-R)
--quiet (-q)
--config-dir DIR
Examples
If you get a conflict on an update, your working copy sprouts three new files:
$ svn update
C foo.c
Updated to revision 31.
$ ls
foo.c
foo.c.mine
foo.c.r30
foo.c.r31
Once you’ve resolved the conflict and foo.c is ready to be committed, run svn resolved to
let your working copy know you’ve taken care of everything.
You can just remove the conflict files and commit, but svn resolved
fixes up some bookkeeping data in the working copy administrative
area in addition to removing the conflict files, so we recommend that
you use this command.
svn revert
Undoes all local edits.
Synopsis
svn revert PATH...
Description
Reverts any local changes to a file or directory and resolves any conflicted states. svn
revert
will not only revert the contents of an item in your working copy, but also any prop-
erty changes. Finally, you can use it to undo any scheduling operations that you may have
done (e.g., files scheduled for addition or deletion can be unscheduled).
Alternate Names
None
Changes
Working copy
Accesses Repository
No