FreeBSD/contrib/subversion/subversion/libsvn_fs_x/dag.c
/* Dup NODEREV and all associated data into RESULT_POOL.
   Leaves the id and is_fresh_txn_root fields as zero bytes. */
Dup NODEREV and all associated data into RESULT_POOL.
Leaves the id and is_fresh_txn_root fields as zero bytes.
Dup NODEREV and all associated data into RESULT_POOL . Leaves the id and is_fresh_txn_root fields as zero bytes .
static svn_fs_x__noderev_t *
copy_node_revision(svn_fs_x__noderev_t *noderev,
                   apr_pool_t *result_pool)
{
  svn_fs_x__noderev_t *nr = apr_pmemdup(result_pool, noderev,
                                        sizeof(*noderev));
  if (noderev->copyfrom_path)
    nr->copyfrom_path = apr_pstrdup(result_pool, noderev->copyfrom_path);
  nr->copyroot_path = apr_pstrdup(result_pool, noderev->copyroot_path);
  nr->data_rep = svn_fs_x__rep_copy(noderev->data_rep, result_pool);
  nr->prop_rep = svn_fs_x__rep_copy(noderev->prop_rep, result_pool);
  if (noderev->created_path)
    nr->created_path = apr_pstrdup(result_pool, noderev->created_path);
  return nr;
}
static svn_fs_x__noderev_t * copy_node_revision ( svn_fs_x__noderev_t * noderev , apr_pool_t * result_pool ) { svn_fs_x__noderev_t * nr = apr_pmemdup ( result_pool , noderev , sizeof ( * noderev ) ) ; if ( noderev -> copyfrom_path ) nr -> copyfrom_path = apr_pstrdup ( result_pool , noderev -> copyfrom_path ) ; nr -> copyroot_path = apr_pstrdup ( result_pool , noderev -> copyroot_path ) ; nr -> data_rep = svn_fs_x__rep_copy ( noderev -> data_rep , result_pool ) ; nr -> prop_rep = svn_fs_x__rep_copy ( noderev -> prop_rep , result_pool ) ; if ( noderev -> created_path ) nr -> created_path = apr_pstrdup ( result_pool , noderev -> created_path ) ; return nr ; }
Dup NODEREV and all associated data into RESULT_POOL.
Dup NODEREV and all associated data into RESULT_POOL .