FreeBSD/contrib/subversion/subversion/libsvn_fs_x/tree.c
/* Set *HISTORY_P to an opaque node history object which represents
   PATH under ROOT.  ROOT must be a revision root.  Use POOL for all
   allocations. */
Set *HISTORY_P to an opaque node history object which represents
PATH under ROOT.  ROOT must be a revision root.  Use POOL for all
allocations.
Set * HISTORY_P to an opaque node history object which represents PATH under ROOT . ROOT must be a revision root . Use POOL for all allocations .
static svn_error_t *
x_node_history(svn_fs_history_t **history_p,
               svn_fs_root_t *root,
               const char *path,
               apr_pool_t *result_pool,
               apr_pool_t *scratch_pool)
{
  svn_node_kind_t kind;
  if (root->is_txn_root)
    return svn_error_create(SVN_ERR_FS_NOT_REVISION_ROOT, NULL, NULL);
  SVN_ERR(svn_fs_x__check_path(&kind, root, path, scratch_pool));
  if (kind == svn_node_none)
    return SVN_FS__NOT_FOUND(root, path);
  *history_p = assemble_history(root->fs, path, root->rev, FALSE, NULL,
                                SVN_INVALID_REVNUM, result_pool);
  return SVN_NO_ERROR;
}
static svn_error_t * x_node_history ( svn_fs_history_t * * history_p , svn_fs_root_t * root , const char * path , apr_pool_t * result_pool , apr_pool_t * scratch_pool ) { svn_node_kind_t kind ; if ( root -> is_txn_root ) return svn_error_create ( SVN_ERR_FS_NOT_REVISION_ROOT , NULL , NULL ) ; SVN_ERR ( svn_fs_x__check_path ( & kind , root , path , scratch_pool ) ) ; if ( kind == svn_node_none ) return SVN_FS__NOT_FOUND ( root , path ) ; * history_p = assemble_history ( root -> fs , path , root -> rev , FALSE , NULL , SVN_INVALID_REVNUM , result_pool ) ; return SVN_NO_ERROR ; }
Set *HISTORY_P to an opaque node history object which represents
PATH under ROOT.
Set * HISTORY_P to an opaque node history object which represents PATH under ROOT .
/* We require a revision root. */ /* And we require that the path exist in the root. */ /* Okay, all seems well.  Build our history object and return it. */