Skip to main content

svn_client_url_from_path2

Function svn_client_url_from_path2 

Source
pub unsafe extern "C" fn svn_client_url_from_path2(
    url: *mut *const c_char,
    path_or_url: *const c_char,
    ctx: *mut svn_client_ctx_t,
    result_pool: *mut apr_pool_t,
    scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Set @a *url to the URL for @a path_or_url allocated in result_pool.

If @a path_or_url is already a URL, set @a *url to @a path_or_url.

If @a path_or_url is a versioned item, set @a *url to @a path_or_url’s entry URL. If @a path_or_url is unversioned (has no entry), set @a *url to NULL.

Use @a ctx->wc_ctx to retrieve the information. Use @a scratch_pool for temporary allocations.

@since New in 1.7.