Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1C2A111FF6 for ; Thu, 17 Jul 2014 14:37:52 +0000 (UTC) Received: (qmail 55752 invoked by uid 500); 17 Jul 2014 14:37:51 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 55720 invoked by uid 500); 17 Jul 2014 14:37:51 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 55705 invoked by uid 99); 17 Jul 2014 14:37:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jul 2014 14:37:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jul 2014 14:37:53 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 5BBCD2388906; Thu, 17 Jul 2014 14:37:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1611368 - /subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c Date: Thu, 17 Jul 2014 14:37:28 -0000 To: commits@subversion.apache.org From: stsp@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140717143728.5BBCD2388906@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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;