pub unsafe extern "C" fn svn_wc_crop_tree2(
wc_ctx: *mut svn_wc_context_t,
local_abspath: *const c_char,
depth: svn_depth_t,
cancel_func: svn_cancel_func_t,
cancel_baton: *mut c_void,
notify_func: svn_wc_notify_func2_t,
notify_baton: *mut c_void,
scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description
Crop @a local_abspath according to @a depth.
Remove any item that exceeds the boundary of @a depth (relative to @a local_abspath) from revision control. Leave modified items behind (unversioned), while removing unmodified ones completely.
@a depth can be svn_depth_empty, svn_depth_files or svn_depth_immediates. Excluding nodes is handled by svn_wc_exclude().
If @a local_abspath starts out with a shallower depth than @a depth, do not upgrade it to @a depth (that would not be cropping); however, do check children and crop them appropriately according to @a depth.
Returns immediately with an #SVN_ERR_UNSUPPORTED_FEATURE error if @a local_abspath is not a directory, or if @a depth is not restrictive (e.g., #svn_depth_infinity).
@a wc_ctx contains a tree lock, for the local path to the working copy which will be used as the root of this operation.
If @a cancel_func is not @c NULL, call it with @a cancel_baton at various points to determine if the client has canceled the operation.
If @a notify_func is not @c NULL, call it with @a notify_baton to report changes as they are made.
@since New in 1.7