30
30
/*** Revisions ***/
32
32
/* Set property NAME to VALUE on REV in FS, allocation from POOL. */
33
svn_error_t *svn_fs_fs__set_rev_prop (svn_fs_t *fs,
33
svn_error_t *svn_fs_fs__set_rev_prop(svn_fs_t *fs,
36
const svn_string_t *value,
39
/* Find the value of the property named PROPNAME in transaction TXN.
40
Return the contents in *VALUE_P. The contents will be allocated
42
svn_error_t *svn_fs_fs__revision_prop(svn_string_t **value_p, svn_fs_t *fs,
36
const svn_string_t *value,
39
/* Find the value of the property named PROPNAME in transaction TXN.
40
Return the contents in *VALUE_P. The contents will be allocated
42
svn_error_t *svn_fs_fs__revision_prop (svn_string_t **value_p, svn_fs_t *fs,
47
47
/* Change, add, or delete a property on a revision REV in filesystem
48
48
FS. NAME gives the name of the property, and value, if non-NULL,
49
49
gives the new contents of the property. If value is NULL, then the
50
50
property will be deleted. Do any temporary allocation in POOL. */
51
svn_error_t *svn_fs_fs__change_rev_prop (svn_fs_t *fs, svn_revnum_t rev,
53
const svn_string_t *value,
51
svn_error_t *svn_fs_fs__change_rev_prop(svn_fs_t *fs, svn_revnum_t rev,
53
const svn_string_t *value,
60
60
/* Set *REVISION to the revision which was created when FS transaction
61
61
TXN_NAME was committed, or to SVN_INVALID_REVNUM if the transaction
62
62
has not been committed. Do all allocations in POOL. */
63
svn_error_t *svn_fs_fs__txn_get_revision (svn_revnum_t *revision,
63
svn_error_t *svn_fs_fs__txn_get_revision(svn_revnum_t *revision,
69
69
/* Retrieve information about the Subversion transaction SVN_TXN from
79
79
transaction that has already been committed.
81
81
Allocate *ROOT_ID_P and *BASE_ROOT_ID_P in POOL. */
82
svn_error_t *svn_fs_fs__get_txn_ids (const svn_fs_id_t **root_id_p,
83
const svn_fs_id_t **base_root_id_p,
82
svn_error_t *svn_fs_fs__get_txn_ids(const svn_fs_id_t **root_id_p,
83
const svn_fs_id_t **base_root_id_p,
88
88
/* Begin a new transaction in filesystem FS, based on existing
89
89
revision REV. The new transaction is returned in *TXN_P. Allocate
90
90
the new transaction structure from POOL. */
91
svn_error_t *svn_fs_fs__begin_txn (svn_fs_txn_t **txn_p, svn_fs_t *fs,
92
svn_revnum_t rev, apr_uint32_t flags,
91
svn_error_t *svn_fs_fs__begin_txn(svn_fs_txn_t **txn_p, svn_fs_t *fs,
92
svn_revnum_t rev, apr_uint32_t flags,
95
95
/* Abort the existing transaction TXN, performing any temporary
96
96
allocations in POOL. */
97
svn_error_t *svn_fs_fs__abort_txn (svn_fs_txn_t *txn, apr_pool_t *pool);
97
svn_error_t *svn_fs_fs__abort_txn(svn_fs_txn_t *txn, apr_pool_t *pool);
99
99
/* Find the value of the property named PROPNAME in transaction TXN.
100
100
Return the contents in *VALUE_P. The contents will be allocated
102
svn_error_t *svn_fs_fs__txn_prop (svn_string_t **value_p, svn_fs_txn_t *txn,
103
const char *propname, apr_pool_t *pool);
102
svn_error_t *svn_fs_fs__txn_prop(svn_string_t **value_p, svn_fs_txn_t *txn,
103
const char *propname, apr_pool_t *pool);
105
105
#ifdef __cplusplus