#[repr(C)]pub struct svn_client_commit_item3_t {
pub path: *const c_char,
pub kind: svn_node_kind_t,
pub url: *const c_char,
pub revision: svn_revnum_t,
pub copyfrom_url: *const c_char,
pub copyfrom_rev: svn_revnum_t,
pub state_flags: apr_byte_t,
pub incoming_prop_changes: *mut apr_array_header_t,
pub outgoing_prop_changes: *mut apr_array_header_t,
pub session_relpath: *const c_char,
pub moved_from_abspath: *const c_char,
}
Expand description
The commit candidate structure.
In order to avoid backwards compatibility problems clients should use svn_client_commit_item3_create() to allocate and initialize this structure instead of doing so themselves.
@since New in 1.5.
Fields§
§path: *const c_char
absolute working-copy path of item. Always set during normal commits (and copies from a working copy) to the repository. Can only be NULL when stub commit items are created for operations that only involve direct repository operations. During WC->REPOS copy operations, this path is the WC source path of the operation.
kind: svn_node_kind_t
node kind (dir, file)
url: *const c_char
commit URL for this item. Points to the repository location of PATH during commits, or to the final URL of the item when copying from the working copy to the repository.
revision: svn_revnum_t
revision of textbase
copyfrom_url: *const c_char
copyfrom-url or NULL if not a copied item
copyfrom_rev: svn_revnum_t
copyfrom-rev, valid when copyfrom_url != NULL
state_flags: apr_byte_t
state flags
incoming_prop_changes: *mut apr_array_header_t
An array of #svn_prop_t *’s, which are incoming changes from the repository to WC properties. These changes are applied post-commit.
When adding to this array, allocate the #svn_prop_t and its contents in @c incoming_prop_changes->pool, so that it has the same lifetime as this data structure.
See https://issues.apache.org/jira/browse/SVN-806 for a description of what would happen if the post-commit process didn’t group these changes together with all other changes to the item.
outgoing_prop_changes: *mut apr_array_header_t
An array of #svn_prop_t *’s, which are outgoing changes to make to properties in the repository. These extra property changes are declared pre-commit, and applied to the repository as part of a commit.
When adding to this array, allocate the #svn_prop_t and its contents in @c outgoing_prop_changes->pool, so that it has the same lifetime as this data structure.
session_relpath: *const c_char
When processing the commit this contains the relative path for the commit session. NULL until the commit item is preprocessed. @since New in 1.7.
moved_from_abspath: *const c_char
When committing a move, this contains the absolute path where the node was directly moved from. (If an ancestor at the original location was moved then it points to where the node itself was moved from; not the original location.) @since New in 1.8.