pub unsafe extern "C" fn svn_wc_get_pristine_props(
props: *mut *mut apr_hash_t,
wc_ctx: *mut svn_wc_context_t,
local_abspath: *const c_char,
result_pool: *mut apr_pool_t,
scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description
Return the set of “pristine” properties for @a local_abspath.
There are node states where properties do not make sense. For these cases, NULL will be returned in @a *props. Otherwise, a hash table will always be returned (but may be empty, indicating no properties).
If the node is locally-added, then @a *props will be set to NULL since pristine properties are undefined. Note: if this addition is replacing a previously-deleted node, then the replaced node’s properties are not available until the addition is reverted.
If the node has been copied (from another node in the repository), then the pristine properties will correspond to those original properties.
If the node is locally-deleted, these properties will correspond to the BASE node’s properties, as checked-out from the repository. Note: if this deletion is a child of a copy, then the pristine properties will correspond to that copy’s properties, not any potential BASE node. The BASE node’s properties will not be accessible until the copy is reverted.
Nodes that are incomplete, excluded, absent, or not present at the node’s revision will return NULL in @a props.
If the node is not versioned, SVN_ERR_WC_PATH_NOT_FOUND will be returned.
@a props will be allocated in @a result_pool, and all temporary allocations will be performed in @a scratch_pool.
@since New in 1.7.