Return-Path: X-Original-To: apmail-subversion-dev-archive@minotaur.apache.org Delivered-To: apmail-subversion-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5ADD2112E5 for ; Wed, 11 Jun 2014 22:39:27 +0000 (UTC) Received: (qmail 17191 invoked by uid 500); 11 Jun 2014 22:39:27 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 17147 invoked by uid 500); 11 Jun 2014 22:39:26 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 17140 invoked by uid 99); 11 Jun 2014 22:39:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2014 22:39:26 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gabriela.gibson@gmail.com designates 74.125.82.171 as permitted sender) Received: from [74.125.82.171] (HELO mail-we0-f171.google.com) (74.125.82.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2014 22:39:20 +0000 Received: by mail-we0-f171.google.com with SMTP id q58so416024wes.2 for ; Wed, 11 Jun 2014 15:38:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=f1WtRUrSg//uzt9yUgoH9lW5Nzdb35Dr/WQjjlEGq8w=; b=pRLj6zrPDkhVPGsIUS3l8S+lYuNnvTHZJcHnXMxhkDpWHIykKaOpFmoTclM8CnDN0v o76wcqap4E8Ip0TszcPpFlBEn6MvFuzPtpAVqM/p1sB1T/4xqR91ekP/elVNX39tVmh7 PTYkeCFquGsZhbqGknmFTB8Y3yDUmTjppADJ2oyvm8WajLeHHb6d+hYks9TyEHrYoHK+ gJWpU/C/qCBvukK6yUMSRspSJSS02yhExKwP9ParWGh4/7Puk9wdey8LV5iBm5elGIkL Oc+kTC6/Ciym4sVnYaf5aysVoNee4lLKdb8Qu+PmydIcp56CC1/P2iVTMeH1i8KxwuzZ tQjw== X-Received: by 10.180.74.203 with SMTP id w11mr851825wiv.27.1402526338884; Wed, 11 Jun 2014 15:38:58 -0700 (PDT) Received: from [192.168.1.66] (host86-181-187-177.range86-181.btcentralplus.com. [86.181.187.177]) by mx.google.com with ESMTPSA id s14sm556322wij.1.2014.06.11.15.38.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Jun 2014 15:38:57 -0700 (PDT) Message-ID: <5398DA86.7070407@gmail.com> Date: Wed, 11 Jun 2014 23:39:02 +0100 From: Gabriela Gibson User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Subversion Development Subject: [PATCH] change of variable name: 'diff_cmd_baton' to 'dwi' in subversion/libsvn_client/diff.c Content-Type: multipart/mixed; boundary="------------070100040801030802050301" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------070100040801030802050301 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Whilst rooting around, I saw that the local variable 'diff_cmd_baton' was changed to the type diff_writer_into_t and in most other placed had the name 'dwi'. I changed all the local instances in subversion/libsvn_client/diff.c to match the new naming scheme. Gabriela [[[ Change all occurrences of 'diff_cmd_baton' to 'dwi'. * subversion/libsvn_client/diff.c (just_paths_for_diff_labels), (diff_props_changed), (svn_client_diff6), (svn_client_diff_peg6): changed local variable diff_cmd_baton to dwi throughout. ]]] --------------070100040801030802050301 Content-Type: text/x-patch; name="dwi.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="dwi.patch" Index: subversion/libsvn_client/diff.c =================================================================== --- subversion/libsvn_client/diff.c (revision 1602013) +++ subversion/libsvn_client/diff.c (working copy) @@ -164,7 +164,7 @@ svn_boolean_t is_url1; svn_boolean_t is_url2; /* ### Holy cow. Due to anchor/target weirdness, we can't - simply join diff_cmd_baton->orig_path_1 with path, ditto for + simply join dwi->orig_path_1 with path, ditto for orig_path_2. That will work when they're directory URLs, but not for file URLs. Nor can we just use anchor1 and anchor2 from do_diff(), at least not without some more logic here. @@ -606,13 +606,13 @@ const apr_array_header_t *propchanges, apr_hash_t *original_props, svn_boolean_t show_diff_header, - diff_writer_info_t *diff_cmd_baton, + diff_writer_info_t *dwi, apr_pool_t *scratch_pool) { apr_array_header_t *props; /* If property differences are ignored, there's nothing to do. */ - if (diff_cmd_baton->ignore_properties) + if (dwi->ignore_properties) return SVN_NO_ERROR; SVN_ERR(svn_categorize_props(propchanges, NULL, NULL, &props, @@ -620,23 +620,23 @@ if (props->nelts > 0) { - /* We're using the revnums from the diff_cmd_baton since there's + /* We're using the revnums from the dwi since there's * no revision argument to the svn_wc_diff_callback_t * dir_props_changed(). */ SVN_ERR(display_prop_diffs(props, original_props, diff_relpath, - diff_cmd_baton->ddi.anchor, - diff_cmd_baton->ddi.orig_path_1, - diff_cmd_baton->ddi.orig_path_2, + dwi->ddi.anchor, + dwi->ddi.orig_path_1, + dwi->ddi.orig_path_2, rev1, rev2, - diff_cmd_baton->header_encoding, - diff_cmd_baton->outstream, - diff_cmd_baton->relative_to_dir, + dwi->header_encoding, + dwi->outstream, + dwi->relative_to_dir, show_diff_header, - diff_cmd_baton->use_git_diff_format, - diff_cmd_baton->ddi.session_relpath, - diff_cmd_baton->wc_ctx, + dwi->use_git_diff_format, + dwi->ddi.session_relpath, + dwi->wc_ctx, scratch_pool)); } @@ -2339,7 +2339,7 @@ svn_client_ctx_t *ctx, apr_pool_t *pool) { - diff_writer_info_t diff_cmd_baton = { 0 }; + diff_writer_info_t dwi = { 0 }; svn_opt_revision_t peg_revision; const svn_diff_tree_processor_t *diff_processor; svn_diff_tree_processor_t *processor; @@ -2353,33 +2353,33 @@ peg_revision.kind = svn_opt_revision_unspecified; /* setup callback and baton */ - diff_cmd_baton.ddi.orig_path_1 = path_or_url1; - diff_cmd_baton.ddi.orig_path_2 = path_or_url2; + dwi.ddi.orig_path_1 = path_or_url1; + dwi.ddi.orig_path_2 = path_or_url2; - SVN_ERR(create_diff_writer_info(&diff_cmd_baton, options, + SVN_ERR(create_diff_writer_info(&dwi, options, ctx->config, pool)); - diff_cmd_baton.pool = pool; - diff_cmd_baton.outstream = outstream; - diff_cmd_baton.errstream = errstream; - diff_cmd_baton.header_encoding = header_encoding; + dwi.pool = pool; + dwi.outstream = outstream; + dwi.errstream = errstream; + dwi.header_encoding = header_encoding; - diff_cmd_baton.force_binary = ignore_content_type; - diff_cmd_baton.ignore_properties = ignore_properties; - diff_cmd_baton.properties_only = properties_only; - diff_cmd_baton.relative_to_dir = relative_to_dir; - diff_cmd_baton.use_git_diff_format = use_git_diff_format; - diff_cmd_baton.no_diff_added = no_diff_added; - diff_cmd_baton.no_diff_deleted = no_diff_deleted; - diff_cmd_baton.show_copies_as_adds = show_copies_as_adds; + dwi.force_binary = ignore_content_type; + dwi.ignore_properties = ignore_properties; + dwi.properties_only = properties_only; + dwi.relative_to_dir = relative_to_dir; + dwi.use_git_diff_format = use_git_diff_format; + dwi.no_diff_added = no_diff_added; + dwi.no_diff_deleted = no_diff_deleted; + dwi.show_copies_as_adds = show_copies_as_adds; - diff_cmd_baton.cancel_func = ctx->cancel_func; - diff_cmd_baton.cancel_baton = ctx->cancel_baton; + dwi.cancel_func = ctx->cancel_func; + dwi.cancel_baton = ctx->cancel_baton; - diff_cmd_baton.wc_ctx = ctx->wc_ctx; - diff_cmd_baton.ddi.session_relpath = NULL; - diff_cmd_baton.ddi.anchor = NULL; + dwi.wc_ctx = ctx->wc_ctx; + dwi.ddi.session_relpath = NULL; + dwi.ddi.anchor = NULL; - processor = svn_diff__tree_processor_create(&diff_cmd_baton, pool); + processor = svn_diff__tree_processor_create(&dwi, pool); processor->dir_added = diff_dir_added; processor->dir_changed = diff_dir_changed; @@ -2395,7 +2395,7 @@ if (show_copies_as_adds || use_git_diff_format) ignore_ancestry = FALSE; - return svn_error_trace(do_diff(NULL, NULL, &diff_cmd_baton.ddi, + return svn_error_trace(do_diff(NULL, NULL, &dwi.ddi, path_or_url1, path_or_url2, revision1, revision2, &peg_revision, depth, ignore_ancestry, changelists, @@ -2426,7 +2426,7 @@ svn_client_ctx_t *ctx, apr_pool_t *pool) { - diff_writer_info_t diff_cmd_baton = { 0 }; + diff_writer_info_t dwi = { 0 }; const svn_diff_tree_processor_t *diff_processor; svn_diff_tree_processor_t *processor; @@ -2436,33 +2436,33 @@ "properties at the same time")); /* setup callback and baton */ - diff_cmd_baton.ddi.orig_path_1 = path_or_url; - diff_cmd_baton.ddi.orig_path_2 = path_or_url; + dwi.ddi.orig_path_1 = path_or_url; + dwi.ddi.orig_path_2 = path_or_url; - SVN_ERR(create_diff_writer_info(&diff_cmd_baton, options, + SVN_ERR(create_diff_writer_info(&dwi, options, ctx->config, pool)); - diff_cmd_baton.pool = pool; - diff_cmd_baton.outstream = outstream; - diff_cmd_baton.errstream = errstream; - diff_cmd_baton.header_encoding = header_encoding; + dwi.pool = pool; + dwi.outstream = outstream; + dwi.errstream = errstream; + dwi.header_encoding = header_encoding; - diff_cmd_baton.force_binary = ignore_content_type; - diff_cmd_baton.ignore_properties = ignore_properties; - diff_cmd_baton.properties_only = properties_only; - diff_cmd_baton.relative_to_dir = relative_to_dir; - diff_cmd_baton.use_git_diff_format = use_git_diff_format; - diff_cmd_baton.no_diff_added = no_diff_added; - diff_cmd_baton.no_diff_deleted = no_diff_deleted; - diff_cmd_baton.show_copies_as_adds = show_copies_as_adds; + dwi.force_binary = ignore_content_type; + dwi.ignore_properties = ignore_properties; + dwi.properties_only = properties_only; + dwi.relative_to_dir = relative_to_dir; + dwi.use_git_diff_format = use_git_diff_format; + dwi.no_diff_added = no_diff_added; + dwi.no_diff_deleted = no_diff_deleted; + dwi.show_copies_as_adds = show_copies_as_adds; - diff_cmd_baton.cancel_func = ctx->cancel_func; - diff_cmd_baton.cancel_baton = ctx->cancel_baton; + dwi.cancel_func = ctx->cancel_func; + dwi.cancel_baton = ctx->cancel_baton; - diff_cmd_baton.wc_ctx = ctx->wc_ctx; - diff_cmd_baton.ddi.session_relpath = NULL; - diff_cmd_baton.ddi.anchor = NULL; + dwi.wc_ctx = ctx->wc_ctx; + dwi.ddi.session_relpath = NULL; + dwi.ddi.anchor = NULL; - processor = svn_diff__tree_processor_create(&diff_cmd_baton, pool); + processor = svn_diff__tree_processor_create(&dwi, pool); processor->dir_added = diff_dir_added; processor->dir_changed = diff_dir_changed; @@ -2478,7 +2478,7 @@ if (show_copies_as_adds || use_git_diff_format) ignore_ancestry = FALSE; - return svn_error_trace(do_diff(NULL, NULL, &diff_cmd_baton.ddi, + return svn_error_trace(do_diff(NULL, NULL, &dwi.ddi, path_or_url, path_or_url, start_revision, end_revision, peg_revision, depth, ignore_ancestry, changelists, --------------070100040801030802050301--