svn_client_commit_item3_t

Struct svn_client_commit_item3_t 

Source
#[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.

Trait Implementations§

Source§

impl Default for svn_client_commit_item3_t

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.