subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1611368 - /subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c
Date Thu, 17 Jul 2014 14:37:28 GMT
Author: stsp
Date: Thu Jul 17 14:37:27 2014
New Revision: 1611368

URL: http://svn.apache.org/r1611368
Log:
Follow-up to r1611356: No need to make pristine files writable for removal.

* subversion/libsvn_wc/wc_db_pristine.c
  (remove_file): svn_io_remove_file2() will remove read-only files, so there's
   no need for us to make pristines writable before removing them.

Suggested by: julianfoad

Modified:
    subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c

Modified: subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c?rev=1611368&r1=1611367&r2=1611368&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c Thu Jul 17 14:37:27 2014
@@ -717,8 +717,6 @@ remove_file(const char *file_abspath,
   file_abspath = temp_abspath;
 #endif
 
-  SVN_ERR(svn_io_set_file_read_write(file_abspath, ignore_enoent,
-                                     scratch_pool));
   SVN_ERR(svn_io_remove_file2(file_abspath, ignore_enoent, scratch_pool));
 
   return SVN_NO_ERROR;



Mime
View raw message