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 1197991AB for ; Sat, 10 Dec 2011 16:12:37 +0000 (UTC) Received: (qmail 66981 invoked by uid 500); 10 Dec 2011 16:12:37 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 66958 invoked by uid 500); 10 Dec 2011 16:12:37 -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 66950 invoked by uid 99); 10 Dec 2011 16:12:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Dec 2011 16:12:36 +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; Sat, 10 Dec 2011 16:12:35 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id E6A5223888E7 for ; Sat, 10 Dec 2011 16:12:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1212817 - /subversion/trunk/subversion/libsvn_client/mergeinfo.c Date: Sat, 10 Dec 2011 16:12:14 -0000 To: commits@subversion.apache.org From: julianfoad@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111210161214.E6A5223888E7@eris.apache.org> Author: julianfoad Date: Sat Dec 10 16:12:14 2011 New Revision: 1212817 URL: http://svn.apache.org/viewvc?rev=1212817&view=rev Log: * subversion/libsvn_client/mergeinfo.c (filter_log_entry_with_rangelist): Add a question and move two variables into a more local scope. Modified: subversion/trunk/subversion/libsvn_client/mergeinfo.c Modified: subversion/trunk/subversion/libsvn_client/mergeinfo.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/mergeinfo.c?rev=1212817&r1=1212816&r2=1212817&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_client/mergeinfo.c (original) +++ subversion/trunk/subversion/libsvn_client/mergeinfo.c Sat Dec 10 16:12:14 2011 @@ -1346,11 +1346,12 @@ filter_log_entry_with_rangelist(void *ba /* If the paths changed by LOG_ENTRY->REVISION are provided we can determine if LOG_ENTRY->REVISION, while only partially represented in - BATON->RANGELIST, is in fact completely applied to all affected paths. */ + BATON->RANGELIST, is in fact completely applied to all affected paths. + ### And ... what if it is, or if it isn't? What do we do with the answer? + And how do we cope if the changed paths are not provided? */ if ((log_entry->non_inheritable || !fleb->filtering_merged) && log_entry->changed_paths2) { - int i; apr_hash_index_t *hi; svn_boolean_t all_subtrees_have_this_rev = TRUE; apr_array_header_t *this_rev_rangelist = @@ -1362,11 +1363,11 @@ filter_log_entry_with_rangelist(void *ba hi; hi = apr_hash_next(hi)) { + int i; const char *path = svn__apr_hash_index_key(hi); svn_log_changed_path2_t *change = svn__apr_hash_index_val(hi); const char *target_fspath_affected; svn_mergeinfo_t nearest_ancestor_mergeinfo; - apr_hash_index_t *hi2; svn_boolean_t found_this_revision = FALSE; const char *merge_source_rel_target; const char *merge_source_fspath; @@ -1438,6 +1439,8 @@ filter_log_entry_with_rangelist(void *ba if (nearest_ancestor_mergeinfo) { + apr_hash_index_t *hi2; + for (hi2 = apr_hash_first(iterpool, nearest_ancestor_mergeinfo); hi2; hi2 = apr_hash_next(hi2))