Version Control with Subversion - Basic Work Cycle - Punting: Using <span>
Punting: Using
svn revert
If you get a conflict, and upon examination decide that
you want to throw out your changes and start your edits
again, just revert your changes:
$ svn revert sandwich.txt
Reverted 'sandwich.txt'
$ ls sandwich.*
sandwich.txt
Note that when you revert a conflicted file, you don't
have to run
svn resolved
.
Now you're ready to check in your changes. Note that
svn resolved
, unlike most of the other
commands we've dealt with in this chapter, requires an
argument. In any case, you want to be careful and only run
svn resolved
when you're certain that you've
fixed the conflict in your file—once the temporary files
are removed, Subversion will let you commit the file even if
it still contains conflict markers.
[an error occurred while processing this directive]
|