svn_client_log

Function svn_client_log 

Source
pub unsafe extern "C" fn svn_client_log(
    targets: *const apr_array_header_t,
    start: *const svn_opt_revision_t,
    end: *const svn_opt_revision_t,
    discover_changed_paths: svn_boolean_t,
    strict_node_history: svn_boolean_t,
    receiver: svn_log_message_receiver_t,
    receiver_baton: *mut c_void,
    ctx: *mut svn_client_ctx_t,
    pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Similar to svn_client_log2(), but with @a limit set to 0, and the following special case:

Special case for repositories at revision 0:

If @a start->kind is #svn_opt_revision_head, and @a end->kind is #svn_opt_revision_number && @a end->number is @c 1, then handle an empty (no revisions) repository specially: instead of erroring because requested revision 1 when the highest revision is 0, just invoke @a receiver on revision 0, passing @c NULL for changed paths and empty strings for the author and date. This is because that particular combination of @a start and @a end usually indicates the common case of log invocation – the user wants to see all log messages from youngest to oldest, where the oldest commit is revision 1. That works fine, except when there are no commits in the repository, hence this special case.

@deprecated Provided for backward compatibility with the 1.1 API.