svn_client_status_t

Struct svn_client_status_t 

Source
#[repr(C)]
pub struct svn_client_status_t {
Show 33 fields pub kind: svn_node_kind_t, pub local_abspath: *const c_char, pub filesize: svn_filesize_t, pub versioned: svn_boolean_t, pub conflicted: svn_boolean_t, pub node_status: svn_wc_status_kind, pub text_status: svn_wc_status_kind, pub prop_status: svn_wc_status_kind, pub wc_is_locked: svn_boolean_t, pub copied: svn_boolean_t, pub repos_root_url: *const c_char, pub repos_uuid: *const c_char, pub repos_relpath: *const c_char, pub revision: svn_revnum_t, pub changed_rev: svn_revnum_t, pub changed_date: apr_time_t, pub changed_author: *const c_char, pub switched: svn_boolean_t, pub file_external: svn_boolean_t, pub lock: *const svn_lock_t, pub changelist: *const c_char, pub depth: svn_depth_t, pub ood_kind: svn_node_kind_t, pub repos_node_status: svn_wc_status_kind, pub repos_text_status: svn_wc_status_kind, pub repos_prop_status: svn_wc_status_kind, pub repos_lock: *const svn_lock_t, pub ood_changed_rev: svn_revnum_t, pub ood_changed_date: apr_time_t, pub ood_changed_author: *const c_char, pub backwards_compatibility_baton: *const c_void, pub moved_from_abspath: *const c_char, pub moved_to_abspath: *const c_char,
}
Expand description

Structure for holding the “status” of a working copy item.

@note Fields may be added to the end of this structure in future versions. Therefore, to preserve binary compatibility, users should not directly allocate structures of this type.

@since New in 1.7.

Fields§

§kind: svn_node_kind_t

The kind of node as recorded in the working copy

§local_abspath: *const c_char

The absolute path to the node

§filesize: svn_filesize_t

The actual size of the working file on disk, or SVN_INVALID_FILESIZE if unknown (or if the item isn’t a file at all).

§versioned: svn_boolean_t

If the path is under version control, versioned is TRUE, otherwise FALSE.

§conflicted: svn_boolean_t

Set to TRUE if the node is the victim of some kind of conflict.

§node_status: svn_wc_status_kind

The status of the node, based on the restructuring changes and if the node has no restructuring changes the text and prop status.

§text_status: svn_wc_status_kind

The status of the text of the node, not including restructuring changes. Valid values are: svn_wc_status_none, svn_wc_status_normal, svn_wc_status_modified and svn_wc_status_conflicted.

§prop_status: svn_wc_status_kind

The status of the node’s properties. Valid values are: svn_wc_status_none, svn_wc_status_normal, svn_wc_status_modified and svn_wc_status_conflicted.

§wc_is_locked: svn_boolean_t

A node can be ‘locked’ if a working copy update is in progress or was interrupted.

§copied: svn_boolean_t

A file or directory can be ‘copied’ if it’s scheduled for addition-with-history (or part of a subtree that is scheduled as such.).

§repos_root_url: *const c_char

The URL of the repository root.

§repos_uuid: *const c_char

The UUID of the repository

§repos_relpath: *const c_char

The in-repository path relative to the repository root.

§revision: svn_revnum_t

Base revision.

§changed_rev: svn_revnum_t

Last revision this was changed

§changed_date: apr_time_t

Date of last commit.

§changed_author: *const c_char

Last commit author of this item

§switched: svn_boolean_t

A file or directory can be ‘switched’ if the switch command has been used. If this is TRUE, then file_external will be FALSE.

§file_external: svn_boolean_t

If the item is a file that was added to the working copy with an svn:externals; if file_external is TRUE, then switched is always FALSE.

§lock: *const svn_lock_t

The locally present lock. (Values of path, token, owner, comment and are available if a lock is present)

§changelist: *const c_char

Which changelist this item is part of, or NULL if not part of any.

§depth: svn_depth_t

The depth of the node as recorded in the working copy (#svn_depth_unknown for files or when no depth is recorded)

§ood_kind: svn_node_kind_t

Set to the node kind of the youngest commit, or #svn_node_none if not out of date.

§repos_node_status: svn_wc_status_kind

The status of the node, based on the text status if the node has no restructuring changes

§repos_text_status: svn_wc_status_kind

The node’s text status in the repository.

§repos_prop_status: svn_wc_status_kind

The node’s property status in the repository.

§repos_lock: *const svn_lock_t

The node’s lock in the repository, if any.

§ood_changed_rev: svn_revnum_t

Set to the youngest committed revision, or #SVN_INVALID_REVNUM if not out of date.

§ood_changed_date: apr_time_t

Set to the most recent commit date, or @c 0 if not out of date.

§ood_changed_author: *const c_char

Set to the user name of the youngest commit, or @c NULL if not out of date or non-existent. Because a non-existent @c svn:author property has the same behavior as an out-of-date working copy, examine @c ood_changed_rev to determine whether the working copy is out of date.

§backwards_compatibility_baton: *const c_void

Reserved for libsvn_client’s internal use; this value is only to be used for libsvn_client backwards compatibility wrappers. This value may be NULL or to other data in future versions.

§moved_from_abspath: *const c_char

Set to the local absolute path that this node was moved from, if this file or directory has been moved here locally and is the root of that move. Otherwise set to NULL.

This will be NULL for moved-here nodes that are just part of a subtree that was moved along (and are not themselves a root of a different move operation).

@since New in 1.8.

§moved_to_abspath: *const c_char

Set to the local absolute path that this node was moved to, if this file or directory has been moved away locally and corresponds to the root of the destination side of the move. Otherwise set to NULL.

Note: Saying just “root” here could be misleading. For example: svn mv A AA; svn mv AA/B BB; creates a situation where A/B is moved-to BB, but one could argue that the move source’s root actually was AA/B. Note that, as far as the working copy is concerned, above case is exactly identical to: svn mv A/B BB; svn mv A AA; In both situations, @a moved_to_abspath would be set for nodes A (moved to AA) and A/B (moved to BB), only.

This will be NULL for moved-away nodes that were just part of a subtree that was moved along (and are not themselves a root of a different move operation).

@since New in 1.8.

Trait Implementations§

Source§

impl Default for svn_client_status_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.