svn_opt_parse_revision_to_range

Function svn_opt_parse_revision_to_range 

Source
pub unsafe extern "C" fn svn_opt_parse_revision_to_range(
    opt_ranges: *mut apr_array_header_t,
    arg: *const c_char,
    pool: *mut apr_pool_t,
) -> c_int
Expand description

Parse @a arg, where @a arg is “N” or “N:M”, into a @c svn_opt_revision_range_t and push that onto @a opt_ranges.

  • If @a arg is “N”, set the @c start field of the @c svn_opt_revision_range_t to represent N and the @c end field to @c svn_opt_revision_unspecified.

  • If @a arg is “N:M”, set the @c start field of the @c svn_opt_revision_range_t to represent N and the @c end field to represent M.

If @a arg is invalid, return -1; else return 0. It is invalid to omit a revision (as in, “:”, “N:” or “:M”).

Use @a pool to allocate @c svn_opt_revision_range_t pushed to the array.

@since New in 1.5.