Skip to main content

svn_ra_get_lock

Function svn_ra_get_lock 

Source
pub unsafe extern "C" fn svn_ra_get_lock(
    session: *mut svn_ra_session_t,
    lock: *mut *mut svn_lock_t,
    path: *const c_char,
    pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

If @a path is locked, set @a *lock to an svn_lock_t which represents the lock, allocated in @a pool.

If @a path is not locked or does not exist in HEAD, set @a *lock to NULL.

@note Before 1.9, this function could return SVN_ERR_FS_NOT_FOUND when @a path didn’t exist in HEAD on specific ra layers.

@since New in 1.2.