svn_mergeinfo_parse

Function svn_mergeinfo_parse 

Source
pub unsafe extern "C" fn svn_mergeinfo_parse(
    mergeinfo: *mut svn_mergeinfo_t,
    input: *const c_char,
    pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Parse the mergeinfo from @a input into @a *mergeinfo. If no mergeinfo is available, return an empty mergeinfo (never @c NULL).

If @a input is not a grammatically correct @c SVN_PROP_MERGEINFO property, contains overlapping revision ranges of differing inheritability, or revision ranges with a start revision greater than or equal to its end revision, or contains paths mapped to empty revision ranges, then return @c SVN_ERR_MERGEINFO_PARSE_ERROR. Unordered revision ranges are allowed, but will be sorted when placed into @a *mergeinfo. Overlapping revision ranges of the same inheritability are also allowed, but will be combined into a single range when placed into @a *mergeinfo.

@a input may contain relative merge source paths, but these are converted to absolute paths in @a *mergeinfo.

Allocate the result deeply in @a pool. Also perform temporary allocations in @a pool.

@since New in 1.5.