pub unsafe extern "C" fn svn_wc_copy3(
wc_ctx: *mut svn_wc_context_t,
src_abspath: *const c_char,
dst_abspath: *const c_char,
metadata_only: svn_boolean_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
Copy @a src_abspath to @a dst_abspath, and schedule @a dst_abspath for addition to the repository, remembering the copy history. @a wc_ctx is used for accessing the working copy and must contain a write lock for the parent directory of @a dst_abspath,
If @a metadata_only is TRUE then this is a database-only operation and the working directories and files are not copied.
@a src_abspath must be a file or directory under version control; the parent of @a dst_abspath must be a directory under version control in the same working copy; @a dst_abspath will be the name of the copied item, and it must not exist already if @a metadata_only is FALSE. Note that when @a src points to a versioned file, the working file doesn’t necessarily exist in which case its text-base is used instead.
If @a cancel_func is non-NULL, call it with @a cancel_baton at various points during the operation. If it returns an error (typically #SVN_ERR_CANCELLED), return that error immediately.
If @a notify_func is non-NULL, call it with @a notify_baton and the path of the root node (only) of the destination.
Use @a scratch_pool for temporary allocations.
@since New in 1.7.