Author: julianfoad Date: Mon Jan 7 16:34:36 2019 New Revision: 1850665 URL: http://svn.apache.org/viewvc?rev=1850665&view=rev Log: * subversion/libsvn_wc/revert.c Update the top-of-file comment to mention removing/keeping local files, for issue #4798.
Modified: subversion/trunk/subversion/libsvn_wc/revert.c Modified: subversion/trunk/subversion/libsvn_wc/revert.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/revert.c?rev=1850665&r1=1850664&r2=1850665&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_wc/revert.c (original) +++ subversion/trunk/subversion/libsvn_wc/revert.c Mon Jan 7 16:34:36 2019 @@ -62,6 +62,18 @@ the addition of all the directory's children. Again, svn_wc_remove_from_revision_control() should do the trick. + - For a copy, we remove the item from disk as well. The thinking here + is that Subversion is responsible for the existence of the item: it + must have been created by something like 'svn copy' or 'svn merge'. + + - For a plain add, removing the file or directory from disk is optional. + The user's idea of Subversion's involvement could be either that + Subversion was just responsible for adding an existing item to version + control, as with 'svn add', and so should not be responsible for + deleting it from disk; or that Subversion is responsible for the + existence of the item, e.g. if created by 'svn patch' or svn mkdir'. + It depends on the use case. + Deletes - Restore properties to their unmodified state.