svn_client_cleanup2

Function svn_client_cleanup2 

Source
pub unsafe extern "C" fn svn_client_cleanup2(
    dir_abspath: *const c_char,
    break_locks: svn_boolean_t,
    fix_recorded_timestamps: svn_boolean_t,
    clear_dav_cache: svn_boolean_t,
    vacuum_pristines: svn_boolean_t,
    include_externals: svn_boolean_t,
    ctx: *mut svn_client_ctx_t,
    scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Recursively cleanup a working copy directory @a dir_abspath, finishing any incomplete operations, removing lockfiles, etc.

If @a break_locks is @c TRUE, existing working copy locks at or below @a dir_abspath are broken, otherwise a normal write lock is obtained.

If @a fix_recorded_timestamps is @c TRUE, this function fixes recorded timestamps for unmodified files in the working copy, reducing comparision time on future checks.

If @a clear_dav_cache is @c TRUE, the caching of DAV information for older mod_dav served repositories is cleared. This clearing invalidates some cached information used for pre-HTTPv2 repositories.

If @a vacuum_pristines is @c TRUE, and @a dir_abspath points to the working copy root unreferenced files in the pristine store are removed.

If @a include_externals is @c TRUE, recurse into externals and clean them up as well.

If @a ctx->cancel_func is non-NULL, invoke it with @a ctx->cancel_baton at various points during the operation. If it returns an error (typically #SVN_ERR_CANCELLED), return that error immediately.

Use @a scratch_pool for any temporary allocations.

@since New in 1.9.