svn_wc_is_wc_root2

Function svn_wc_is_wc_root2 

Source
pub unsafe extern "C" fn svn_wc_is_wc_root2(
    wc_root: *mut svn_boolean_t,
    wc_ctx: *mut svn_wc_context_t,
    local_abspath: *const c_char,
    scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Set @a *wc_root to @c TRUE if @a local_abspath represents a “working copy root”, @c FALSE otherwise. Here, @a local_abspath is a “working copy root” if its parent directory is not a WC or if it is switched. Also, a deleted tree-conflict victim is considered a “working copy root” because it has no URL.

If @a local_abspath is not found, return the error #SVN_ERR_ENTRY_NOT_FOUND.

Use @a scratch_pool for any temporary allocations.

@note For legacy reasons only a directory can be a wc-root. However, this function will also set wc_root to @c TRUE for a switched file.

@since New in 1.7. @deprecated Provided for backward compatibility with the 1.7 API. Consider using svn_wc_check_root() instead.