Return-Path: Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: (qmail 11793 invoked from network); 26 Jun 2010 17:57:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Jun 2010 17:57:04 -0000 Received: (qmail 67560 invoked by uid 500); 26 Jun 2010 17:57:04 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 67517 invoked by uid 500); 26 Jun 2010 17:57:03 -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 67510 invoked by uid 99); 26 Jun 2010 17:57:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Jun 2010 17:57:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.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; Sat, 26 Jun 2010 17:57:01 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 463D72388903; Sat, 26 Jun 2010 17:56:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r958260 - /subversion/trunk/subversion/libsvn_client/diff.c Date: Sat, 26 Jun 2010 17:56:07 -0000 To: commits@subversion.apache.org From: dannas@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100626175607.463D72388903@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dannas Date: Sat Jun 26 17:56:06 2010 New Revision: 958260 URL: http://svn.apache.org/viewvc?rev=958260&view=rev Log: With SVN_EXPERIMENTAL_PATCH defined, only print the git diff header for deleted paths instead of as previously adding all the hunks that have been deleted. We *know* from the diff header that the file should be deleted. * subversion/libsvn_client/diff.c (diff_content_changed): If a delete, we're done after printing the git diff header. Modified: subversion/trunk/subversion/libsvn_client/diff.c Modified: subversion/trunk/subversion/libsvn_client/diff.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/diff.c?rev=958260&r1=958259&r2=958260&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_client/diff.c (original) +++ subversion/trunk/subversion/libsvn_client/diff.c Sat Jun 26 17:56:06 2010 @@ -705,10 +705,11 @@ diff_content_changed(const char *path, os, diff_cmd_baton->header_encoding, path, subpool)); + svn_pool_destroy(subpool); + + /* We only display the git diff header for deletes. */ + return SVN_NO_ERROR; - label1 = diff_label(apr_psprintf(subpool, "a/%s", path1), rev1, - subpool); - label2 = diff_label("/dev/null", rev2, subpool); } else if (operation == svn_diff_op_added) {