svn_wc_transmit_text_deltas3

Function svn_wc_transmit_text_deltas3 

Source
pub unsafe extern "C" fn svn_wc_transmit_text_deltas3(
    new_text_base_md5_checksum: *mut *const svn_checksum_t,
    new_text_base_sha1_checksum: *mut *const svn_checksum_t,
    wc_ctx: *mut svn_wc_context_t,
    local_abspath: *const c_char,
    fulltext: svn_boolean_t,
    editor: *const svn_delta_editor_t,
    file_baton: *mut c_void,
    result_pool: *mut apr_pool_t,
    scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Send the local modifications for versioned file @a local_abspath (with matching @a file_baton) through @a editor, then close @a file_baton afterwards. Use @a scratch_pool for any temporary allocation.

If @a new_text_base_md5_checksum is non-NULL, set @a *new_text_base_md5_checksum to the MD5 checksum of (@a local_abspath translated to repository-normal form), allocated in @a result_pool.

If @a new_text_base_sha1_checksum in non-NULL, store a copy of (@a local_abspath translated to repository-normal form) in the pristine text store, and set @a *new_text_base_sha1_checksum to its SHA-1 checksum.

If @a fulltext, send the untranslated copy of @a local_abspath through @a editor as full-text; else send it as svndiff against the current text base.

If sending a diff, and the recorded checksum for @a local_abspath’s text-base does not match the current actual checksum, then remove the tmp copy (and set @a *tempfile to NULL if appropriate), and return the error #SVN_ERR_WC_CORRUPT_TEXT_BASE.

@note This is intended for use with both infix and postfix text-delta styled editor drivers.

@since New in 1.7.