1 /* node-rev.h : interface to node revision retrieval and storage
3 * ====================================================================
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
20 * ====================================================================
23 #ifndef SVN_LIBSVN_FS_NODE_REV_H
24 #define SVN_LIBSVN_FS_NODE_REV_H
27 #include "svn_private_config.h"
34 #endif /* __cplusplus */
39 /* Create an entirely new, mutable node in the filesystem FS, whose
40 NODE-REVISION is NODEREV, as part of TRAIL. Set *ID_P to the new
41 node revision's ID. Use POOL for any temporary allocation.
43 COPY_ID is the copy_id to use in the node revision ID returned in
46 TXN_ID is the Subversion transaction under which this occurs.
48 After this call, the node table manager assumes that the new node's
49 contents will change frequently. */
50 svn_error_t *svn_fs_base__create_node(const svn_fs_id_t **id_p,
52 node_revision_t *noderev,
58 /* Create a node revision in FS which is an immediate successor of
59 OLD_ID, whose contents are NEW_NR, as part of TRAIL. Set *NEW_ID_P
60 to the new node revision's ID. Use POOL for any temporary
63 COPY_ID, if non-NULL, is a key into the `copies' table, and
64 indicates that this new node is being created as the result of a
65 copy operation, and specifically which operation that was.
67 TXN_ID is the Subversion transaction under which this occurs.
69 After this call, the deltification code assumes that the new node's
70 contents will change frequently, and will avoid representing other
71 nodes as deltas against this node's contents. */
72 svn_error_t *svn_fs_base__create_successor(const svn_fs_id_t **new_id_p,
74 const svn_fs_id_t *old_id,
75 node_revision_t *new_nr,
82 /* Delete node revision ID from FS's `nodes' table, as part of TRAIL.
83 If ORIGIN_ALSO is set, also delete the record for this ID's node ID
84 from the `node-origins' index table (which is typically only done
85 if the caller thinks that ID points to the only node revision ID in
88 WARNING: This does not check that the node revision is mutable!
89 Callers should do that check themselves. */
90 svn_error_t *svn_fs_base__delete_node_revision(svn_fs_t *fs,
91 const svn_fs_id_t *id,
92 svn_boolean_t origin_also,
99 #endif /* __cplusplus */
101 #endif /* SVN_LIBSVN_FS_NODE_REV_H */