Mark many merge tests as skip-against-old-server.
[svn.git] / subversion / libsvn_fs_base / node-rev.h
blobba36ec1fd251a7fd90ca8e8f7a47d3bf9f3b7a00
1 /* node-rev.h : interface to node revision retrieval and storage
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_NODE_REV_H
19 #define SVN_LIBSVN_FS_NODE_REV_H
21 #define APU_WANT_DB
22 #include <apu_want.h>
24 #include "svn_fs.h"
25 #include "trail.h"
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
32 /*** Functions. ***/
34 /* Create an entirely new, mutable node in the filesystem FS, whose
35 NODE-REVISION is NODEREV, as part of TRAIL. Set *ID_P to the new
36 node revision's ID. Use POOL for any temporary allocation.
38 COPY_ID is the copy_id to use in the node revision ID returned in
39 *ID_P.
41 TXN_ID is the Subversion transaction under which this occurs.
43 After this call, the node table manager assumes that the new node's
44 contents will change frequently. */
45 svn_error_t *svn_fs_base__create_node(const svn_fs_id_t **id_p,
46 svn_fs_t *fs,
47 node_revision_t *noderev,
48 const char *copy_id,
49 const char *txn_id,
50 trail_t *trail,
51 apr_pool_t *pool);
53 /* Create a node revision in FS which is an immediate successor of
54 OLD_ID, whose contents are NEW_NR, as part of TRAIL. Set *NEW_ID_P
55 to the new node revision's ID. Use POOL for any temporary
56 allocation.
58 COPY_ID, if non-NULL, is a key into the `copies' table, and
59 indicates that this new node is being created as the result of a
60 copy operation, and specifically which operation that was.
62 TXN_ID is the Subversion transaction under which this occurs.
64 After this call, the deltification code assumes that the new node's
65 contents will change frequently, and will avoid representing other
66 nodes as deltas against this node's contents. */
67 svn_error_t *svn_fs_base__create_successor(const svn_fs_id_t **new_id_p,
68 svn_fs_t *fs,
69 const svn_fs_id_t *old_id,
70 node_revision_t *new_nr,
71 const char *copy_id,
72 const char *txn_id,
73 trail_t *trail,
74 apr_pool_t *pool);
77 /* Delete node revision ID from FS's `nodes' table, as part of TRAIL.
78 If ORIGIN_ALSO is set, also delete the record for this ID's node ID
79 from the `node-origins' index table (which is typically only done
80 if the caller things that ID points to the only node revision ID in
81 its line of history).
83 WARNING: This does not check that the node revision is mutable!
84 Callers should do that check themselves. */
85 svn_error_t *svn_fs_base__delete_node_revision(svn_fs_t *fs,
86 const svn_fs_id_t *id,
87 svn_boolean_t origin_also,
88 trail_t *trail,
89 apr_pool_t *pool);
92 #ifdef __cplusplus
94 #endif /* __cplusplus */
96 #endif /* SVN_LIBSVN_FS_NODE_REV_H */