svn_mergeinfo_merge2

Function svn_mergeinfo_merge2 

Source
pub unsafe extern "C" fn svn_mergeinfo_merge2(
    mergeinfo: svn_mergeinfo_t,
    changes: svn_mergeinfo_t,
    result_pool: *mut apr_pool_t,
    scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Merge a shallow copy of one mergeinfo, @a changes, into another mergeinfo @a mergeinfo.

Rangelists for merge source paths common to @a changes and @a mergeinfo may result in new rangelists; these are allocated in @a result_pool. Temporary allocations are made in @a scratch_pool.

When intersecting rangelists for a path are merged, the inheritability of the resulting svn_merge_range_t depends on the inheritability of the operands. If two non-inheritable ranges are merged the result is always non-inheritable, in all other cases the resulting range is inheritable.

e.g. ‘/A: 1,3-4’ merged with ‘/A: 1,3,4*,5’ –> ‘/A: 1,3-5’ ‘/A: 1,3-4*’ merged with ‘/A: 1,3,4*,5’ –> ‘/A: 1,3,4*,5’

@since New in 1.8.