1 /* tree.h : internal interface to tree node functions
3 * ====================================================================
4 * Copyright (c) 2000-2004 CollabNet. All rights reserved.
6 * This software is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at http://subversion.tigris.org/license-1.html.
9 * If newer versions of this license are posted there, you may use a
10 * newer version instead, at your option.
12 * This software consists of voluntary contributions made by many
13 * individuals. For exact contribution history, see the revision
14 * history and logs, available at http://subversion.tigris.org/.
15 * ====================================================================
18 #ifndef SVN_LIBSVN_FS_TREE_H
19 #define SVN_LIBSVN_FS_TREE_H
23 #endif /* __cplusplus */
27 /* Set *ROOT_P to the root directory of revision REV in filesystem FS.
28 Allocate the structure in POOL. */
29 svn_error_t
*svn_fs_fs__revision_root(svn_fs_root_t
**root_p
, svn_fs_t
*fs
,
30 svn_revnum_t rev
, apr_pool_t
*pool
);
32 /* Does nothing, but included for Subversion 1.0.x compatibility. */
33 svn_error_t
*svn_fs_fs__deltify(svn_fs_t
*fs
, svn_revnum_t rev
,
36 /* Commit the transaction TXN as a new revision. Return the new
37 revision in *NEW_REV. If the transaction conflicts with other
38 changes return SVN_ERR_FS_CONFLICT and set *CONFLICT_P to a string
39 that details the cause of the conflict. Perform temporary
40 allocations in POOL. */
41 svn_error_t
*svn_fs_fs__commit_txn(const char **conflict_p
,
42 svn_revnum_t
*new_rev
, svn_fs_txn_t
*txn
,
45 /* Set ROOT_P to the root directory of transaction TXN. Allocate the
47 svn_error_t
*svn_fs_fs__txn_root(svn_fs_root_t
**root_p
, svn_fs_txn_t
*txn
,
50 /* Set KIND_P to the node kind of the node at PATH in ROOT.
51 Allocate the structure in POOL. */
53 svn_fs_fs__check_path(svn_node_kind_t
*kind_p
,
58 /* Set *REVISION to the revision in which PATH under ROOT was created.
59 Use POOL for any temporary allocations. If PATH is in an
60 uncommitted transaction, *REVISION will be set to
61 SVN_INVALID_REVNUM. */
63 svn_fs_fs__node_created_rev(svn_revnum_t
*revision
,
70 #endif /* __cplusplus */
72 #endif /* SVN_LIBSVN_FS_TREE_H */