svn_wc_entry_t

Struct svn_wc_entry_t 

Source
#[repr(C)]
pub struct svn_wc_entry_t {
Show 39 fields pub name: *const c_char, pub revision: svn_revnum_t, pub url: *const c_char, pub repos: *const c_char, pub uuid: *const c_char, pub kind: svn_node_kind_t, pub schedule: svn_wc_schedule_t, pub copied: svn_boolean_t, pub deleted: svn_boolean_t, pub absent: svn_boolean_t, pub incomplete: svn_boolean_t, pub copyfrom_url: *const c_char, pub copyfrom_rev: svn_revnum_t, pub conflict_old: *const c_char, pub conflict_new: *const c_char, pub conflict_wrk: *const c_char, pub prejfile: *const c_char, pub text_time: apr_time_t, pub prop_time: apr_time_t, pub checksum: *const c_char, pub cmt_rev: svn_revnum_t, pub cmt_date: apr_time_t, pub cmt_author: *const c_char, pub lock_token: *const c_char, pub lock_owner: *const c_char, pub lock_comment: *const c_char, pub lock_creation_date: apr_time_t, pub has_props: svn_boolean_t, pub has_prop_mods: svn_boolean_t, pub cachable_props: *const c_char, pub present_props: *const c_char, pub changelist: *const c_char, pub working_size: apr_off_t, pub keep_local: svn_boolean_t, pub depth: svn_depth_t, pub tree_conflict_data: *const c_char, pub file_external_path: *const c_char, pub file_external_peg_rev: svn_opt_revision_t, pub file_external_rev: svn_opt_revision_t,
}
Expand description

A working copy entry – that is, revision control information about one versioned entity.

@deprecated Provided for backward compatibility with the 1.6 API.

Fields§

§name: *const c_char

entry’s name

§revision: svn_revnum_t

base revision

§url: *const c_char

url in repository

§repos: *const c_char

canonical repository URL or NULL if not known

§uuid: *const c_char

repository uuid

§kind: svn_node_kind_t

node kind (file, dir, …)

§schedule: svn_wc_schedule_t

scheduling (add, delete, replace …)

§copied: svn_boolean_t

in a copied state (possibly because the entry is a child of a path that is #svn_wc_schedule_add or #svn_wc_schedule_replace, when the entry itself is #svn_wc_schedule_normal). COPIED is true for nodes under a directory that was copied, but COPYFROM_URL is null there. They are both set for the root destination of the copy.

§deleted: svn_boolean_t

The directory containing this entry had a versioned child of this name, but this entry represents a different revision or a switched path at which no item exists in the repository. This typically arises from committing or updating to a deletion of this entry without committing or updating the parent directory.

The schedule can be ‘normal’ or ‘add’.

§absent: svn_boolean_t

absent – we know an entry of this name exists, but that’s all (usually this happens because of authz restrictions)

§incomplete: svn_boolean_t

for THIS_DIR entry, implies whole entries file is incomplete

§copyfrom_url: *const c_char

copyfrom location

§copyfrom_rev: svn_revnum_t

copyfrom revision

§conflict_old: *const c_char

old version of conflicted file. A file basename, relative to the user’s directory that the THIS_DIR entry refers to.

§conflict_new: *const c_char

new version of conflicted file. A file basename, relative to the user’s directory that the THIS_DIR entry refers to.

§conflict_wrk: *const c_char

working version of conflicted file. A file basename, relative to the user’s directory that the THIS_DIR entry refers to.

§prejfile: *const c_char

property reject file. A file basename, relative to the user’s directory that the THIS_DIR entry refers to.

§text_time: apr_time_t

last up-to-date time for text contents (0 means no information available)

§prop_time: apr_time_t

last up-to-date time for properties (0 means no information available)

@deprecated This value will always be 0 in version 1.4 and later.

§checksum: *const c_char

Hex MD5 checksum for the untranslated text base file, can be @c NULL for backwards compatibility.

§cmt_rev: svn_revnum_t

last revision this was changed

§cmt_date: apr_time_t

last date this was changed

§cmt_author: *const c_char

last commit author of this item

§lock_token: *const c_char

lock token or NULL if path not locked in this WC @since New in 1.2.

§lock_owner: *const c_char

lock owner, or NULL if not locked in this WC @since New in 1.2.

§lock_comment: *const c_char

lock comment or NULL if not locked in this WC or no comment @since New in 1.2.

§lock_creation_date: apr_time_t

Lock creation date or 0 if not locked in this WC @since New in 1.2.

§has_props: svn_boolean_t

Whether this entry has any working properties. False if this information is not stored in the entry.

@since New in 1.4.

§has_prop_mods: svn_boolean_t

Whether this entry has property modifications.

@note For working copies in older formats, this flag is not valid.

@see svn_wc_props_modified_p().

@since New in 1.4.

§cachable_props: *const c_char

A space-separated list of all properties whose presence/absence is cached in this entry.

@see @c present_props.

@since New in 1.4. @deprecated This value will always be “” in version 1.7 and later.

§present_props: *const c_char

Cached property existence for this entry. This is a space-separated list of property names. If a name exists in @c cachable_props but not in this list, this entry does not have that property. If a name exists in both lists, the property is present on this entry.

@since New in 1.4. @deprecated This value will always be “” in version 1.7 and later.

§changelist: *const c_char

which changelist this item is part of, or NULL if not part of any. @since New in 1.5.

§working_size: apr_off_t

Size of the file after being translated into local representation, or #SVN_WC_ENTRY_WORKING_SIZE_UNKNOWN if unknown.

@since New in 1.5.

§keep_local: svn_boolean_t

Whether a local copy of this entry should be kept in the working copy after a deletion has been committed, Only valid for the this-dir entry when it is scheduled for deletion.

@since New in 1.5.

§depth: svn_depth_t

The depth of this entry.

§It’s a bit annoying that we only use this on this_dir
§entries, yet it will exist (with value svn_depth_infinity) on
§all entries. Maybe some future extensibility would make this
§field meaningful on entries besides this_dir.

@since New in 1.5.

§tree_conflict_data: *const c_char

Serialized data for all of the tree conflicts detected in this_dir.

@since New in 1.6.

§file_external_path: *const c_char

The entry is a intra-repository file external and this is the repository root relative path to the file specified in the externals definition, otherwise NULL if the entry is not a file external.

@since New in 1.6.

§file_external_peg_rev: svn_opt_revision_t

The entry is a intra-repository file external and this is the peg revision number specified in the externals definition. This field is only valid when the file_external_path field is non-NULL. The only permissible values are svn_opt_revision_unspecified if the entry is not an external, svn_opt_revision_head if the external revision is unspecified or specified with -r HEAD or svn_opt_revision_number for a specific revision number.

@since New in 1.6.

§file_external_rev: svn_opt_revision_t

The entry is an intra-repository file external and this is the operative revision number specified in the externals definition. This field is only valid when the file_external_path field is non-NULL. The only permissible values are svn_opt_revision_unspecified if the entry is not an external, svn_opt_revision_head if the external revision is unspecified or specified with -r HEAD or svn_opt_revision_number for a specific revision number.

@since New in 1.6.

Trait Implementations§

Source§

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