pub unsafe extern "C" fn svn_opt_parse_revision(
start_revision: *mut svn_opt_revision_t,
end_revision: *mut svn_opt_revision_t,
arg: *const c_char,
pool: *mut apr_pool_t,
) -> c_int
Expand description
Set @a *start_revision and/or @a *end_revision according to @a arg, where @a arg is “N” or “N:M”, like so:
-
If @a arg is “N”, set @a *start_revision to represent N, and leave @a *end_revision untouched.
-
If @a arg is “N:M”, set @a *start_revision and @a *end_revision to represent N and M respectively.
N and/or M may be one of the special revision descriptors recognized by revision_from_word(), or a date in curly braces.
If @a arg is invalid, return -1; else return 0. It is invalid to omit a revision (as in, “:”, “N:” or “:M”).
@note It is typical, though not required, for @a *start_revision and @a *end_revision to be @c svn_opt_revision_unspecified kind on entry.
Use @a pool for temporary allocations.