Skip to content

Commit

Permalink
On the 'apply-processor' branch: replay r1922347 from 'trunk', markin…
Browse files Browse the repository at this point in the history
…g it as

merged.

This is a follow-up to r1922333 (regarding apply-processor), which is similar
to r1922266 (this revision has been committed to trunk). So complicated...

* Revert changes in record_skip() and record_tree_conflict() functions.

git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/apply-processor@1922348 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
rinrab committed Dec 6, 2024
1 parent a6bab37 commit 0481a20
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions subversion/libsvn_client/merge_processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ record_skip(merge_apply_processor_baton_t *merge_b,
if (merge_b->record_only)
return SVN_NO_ERROR; /* ### Why? - Legacy compatibility */

if (pdb->shadowed)
if (!(pdb && pdb->shadowed))
SVN_ERR(notify_skipped_path(merge_b, local_abspath, scratch_pool));

if (merge_b->notify_func)
Expand Down Expand Up @@ -647,7 +647,8 @@ record_tree_conflict(merge_apply_processor_baton_t *merge_b,
svn_wc_conflict_description2_t *conflict;
const svn_wc_conflict_version_t *left;
const svn_wc_conflict_version_t *right;
apr_pool_t *result_pool = parent_baton->pool;
apr_pool_t *result_pool = parent_baton ? parent_baton->pool
: scratch_pool;
svn_client__merge_source_t *source;

if (reason == svn_wc_conflict_reason_deleted)
Expand Down Expand Up @@ -711,12 +712,15 @@ record_tree_conflict(merge_apply_processor_baton_t *merge_b,
SVN_ERR(svn_wc__add_tree_conflict(merge_b->ctx->wc_ctx, conflict,
scratch_pool));

if (! parent_baton->new_tree_conflicts)
parent_baton->new_tree_conflicts = apr_hash_make(result_pool);
if (parent_baton)
{
if (! parent_baton->new_tree_conflicts)
parent_baton->new_tree_conflicts = apr_hash_make(result_pool);

svn_hash_sets(parent_baton->new_tree_conflicts,
apr_pstrdup(result_pool, local_abspath),
conflict);
svn_hash_sets(parent_baton->new_tree_conflicts,
apr_pstrdup(result_pool, local_abspath),
conflict);
}

/* ### TODO: Store in parent baton */
}
Expand Down

0 comments on commit 0481a20

Please sign in to comment.