FreeBSD/contrib/subversion/subversion/libsvn_fs_x/tree.c
/* Set *NODE_P to a mutable root directory for ROOT, cloning if
   necessary, allocating in RESULT_POOL.  ROOT must be a transaction root.
   Use ERROR_PATH in error messages.  Use SCRATCH_POOL for temporaries.*/
Set *NODE_P to a mutable root directory for ROOT, cloning if
necessary, allocating in RESULT_POOL.  ROOT must be a transaction root.
Use ERROR_PATH in error messages.  Use SCRATCH_POOL for temporaries.
Set * NODE_P to a mutable root directory for ROOT cloning if necessary allocating in RESULT_POOL . ROOT must be a transaction root . Use ERROR_PATH in error messages . Use SCRATCH_POOL for temporaries .
static svn_error_t *
mutable_root_node(dag_node_t **node_p,
                  svn_fs_root_t *root,
                  const char *error_path,
                  apr_pool_t *result_pool,
                  apr_pool_t *scratch_pool)
{
  if (root->is_txn_root)
    {
      return svn_fs_x__dag_txn_root(node_p, root->fs, root_txn_id(root),
                                    result_pool, scratch_pool);
    }
  else
    return SVN_FS__ERR_NOT_MUTABLE(root->fs, root->rev, error_path);
}
static svn_error_t * mutable_root_node ( dag_node_t * * node_p , svn_fs_root_t * root , const char * error_path , apr_pool_t * result_pool , apr_pool_t * scratch_pool ) { if ( root -> is_txn_root ) { return svn_fs_x__dag_txn_root ( node_p , root -> fs , root_txn_id ( root ) , result_pool , scratch_pool ) ; } else return SVN_FS__ERR_NOT_MUTABLE ( root -> fs , root -> rev , error_path ) ; }
Set *NODE_P to a mutable root directory for ROOT, cloning if
necessary, allocating in RESULT_POOL.
Set * NODE_P to a mutable root directory for ROOT cloning if necessary allocating in RESULT_POOL .
/* It's a transaction root.  Open a fresh copy.  */ /* If it's not a transaction root, we can't change its contents.  */