FreeBSD/contrib/subversion/subversion/libsvn_fs_x/tree.c
/* Public interface to computing file text deltas.  */
Public interface to computing file text deltas.
Public interface to computing file text deltas .
static svn_error_t *
x_get_file_delta_stream(svn_txdelta_stream_t **stream_p,
                        svn_fs_root_t *source_root,
                        const char *source_path,
                        svn_fs_root_t *target_root,
                        const char *target_path,
                        apr_pool_t *pool)
{
  dag_node_t *source_node, *target_node;
  apr_pool_t *scratch_pool = svn_pool_create(pool);
  if (source_root && source_path)
    SVN_ERR(get_dag(&source_node, source_root, source_path, scratch_pool));
  else
    source_node = NULL;
  SVN_ERR(get_dag(&target_node, target_root, target_path, scratch_pool));
  SVN_ERR(svn_fs_x__dag_get_file_delta_stream(stream_p, source_node,
                                              target_node, pool,
                                              scratch_pool));
  svn_pool_destroy(scratch_pool);
  return SVN_NO_ERROR;
}
static svn_error_t * x_get_file_delta_stream ( svn_txdelta_stream_t * * stream_p , svn_fs_root_t * source_root , const char * source_path , svn_fs_root_t * target_root , const char * target_path , apr_pool_t * pool ) { dag_node_t * source_node , * target_node ; apr_pool_t * scratch_pool = svn_pool_create ( pool ) ; if ( source_root && source_path ) SVN_ERR ( get_dag ( & source_node , source_root , source_path , scratch_pool ) ) ; else source_node = NULL ; SVN_ERR ( get_dag ( & target_node , target_root , target_path , scratch_pool ) ) ; SVN_ERR ( svn_fs_x__dag_get_file_delta_stream ( stream_p , source_node , target_node , pool , scratch_pool ) ) ; svn_pool_destroy ( scratch_pool ) ; return SVN_NO_ERROR ; }
Public interface to computing file text deltas.
Public interface to computing file text deltas .
/* Create a delta stream that turns the source into the target.  */