FreeBSD/contrib/subversion/subversion/libsvn_ra_serf/update.c
/* Wield the editor referenced by INFO to open (or add) the file
   file also associated with INFO, setting properties on the file and
   calling the editor's apply_textdelta() function on it if necessary
   (or if FORCE_APPLY_TEXTDELTA is set).

   Callers will probably want to also see the function that serves
   the opposite purpose of this one, close_updated_file().  */
Wield the editor referenced by INFO to open (or add) the file
file also associated with INFO, setting properties on the file and
calling the editor's apply_textdelta() function on it if necessary
(or if FORCE_APPLY_TEXTDELTA is set).

Callers will probably want to also see the function that serves
the opposite purpose of this one, close_updated_file().
Wield the editor referenced by INFO to open ( or add ) the file file also associated with INFO setting properties on the file and calling the editor ' s apply_textdelta () function on it if necessary ( or if FORCE_APPLY_TEXTDELTA is set ) . Callers will probably want to also see the function that serves the opposite purpose of this one close_updated_file () .
static svn_error_t *
open_file_txdelta(file_baton_t *file,
                  apr_pool_t *scratch_pool)
{
  const svn_delta_editor_t *editor = file->parent_dir->ctx->editor;
  SVN_ERR_ASSERT(file->txdelta == NULL);
  SVN_ERR(ensure_file_opened(file, scratch_pool));
  SVN_ERR(editor->apply_textdelta(file->file_baton,
                                  svn_checksum_to_cstring(
                                                  file->base_md5_checksum,
                                                  scratch_pool),
                                  file->pool,
                                  &file->txdelta,
                                  &file->txdelta_baton));
  return SVN_NO_ERROR;
}
static svn_error_t * open_file_txdelta ( file_baton_t * file , apr_pool_t * scratch_pool ) { const svn_delta_editor_t * editor = file -> parent_dir -> ctx -> editor ; SVN_ERR_ASSERT ( file -> txdelta == NULL ) ; SVN_ERR ( ensure_file_opened ( file , scratch_pool ) ) ; SVN_ERR ( editor -> apply_textdelta ( file -> file_baton , svn_checksum_to_cstring ( file -> base_md5_checksum , scratch_pool ) , file -> pool , & file -> txdelta , & file -> txdelta_baton ) ) ; return SVN_NO_ERROR ; }
Wield the editor referenced by INFO to open (or add) the file
file also associated with INFO, setting properties on the file and
calling the editor's apply_textdelta() function on it if necessary
(or if FORCE_APPLY_TEXTDELTA is set).
Wield the editor referenced by INFO to open ( or add ) the file file also associated with INFO setting properties on the file and calling the editor ' s apply_textdelta () function on it if necessary ( or if FORCE_APPLY_TEXTDELTA is set ) .
/* Get (maybe) a textdelta window handler for transmitting file
     content changes. */