Typedefs | |
typedef svn_error_t *(* | svn_fs_get_locks_callback_t )(void *baton, svn_lock_t *lock, apr_pool_t *pool) |
The type of a lock discovery callback function. | |
Functions | |
svn_error_t * | svn_fs_lock (svn_lock_t **lock, svn_fs_t *fs, const char *path, const char *token, const char *comment, svn_boolean_t is_dav_comment, apr_time_t expiration_date, svn_revnum_t current_rev, svn_boolean_t steal_lock, apr_pool_t *pool) |
Lock path in fs, and set *lock to a lock representing the new lock, allocated in pool. | |
svn_error_t * | svn_fs_generate_lock_token (const char **token, svn_fs_t *fs, apr_pool_t *pool) |
Generate a unique lock-token using fs. | |
svn_error_t * | svn_fs_unlock (svn_fs_t *fs, const char *path, const char *token, svn_boolean_t break_lock, apr_pool_t *pool) |
Remove the lock on path represented by token in fs. | |
svn_error_t * | svn_fs_get_lock (svn_lock_t **lock, svn_fs_t *fs, const char *path, apr_pool_t *pool) |
If path is locked in fs, set *lock to an svn_lock_t which represents the lock, allocated in pool. | |
svn_error_t * | svn_fs_get_locks (svn_fs_t *fs, const char *path, svn_fs_get_locks_callback_t get_locks_func, void *get_locks_baton, apr_pool_t *pool) |
Report locks on or below path in fs using the get_locks_func / get_locks_baton. |
|
The type of a lock discovery callback function.
baton is the value specified in the call to |
|
Generate a unique lock-token using fs. Return in *token, allocated in pool.
This can be used in to populate lock->token before calling |
|
If path is locked in fs, set *lock to an svn_lock_t which represents the lock, allocated in pool. If path is not locked, set *lock to NULL. |
|
Report locks on or below path in fs using the get_locks_func / get_locks_baton. Use pool for necessary allocations. If the get_locks_func callback implementation returns an error, lock iteration will terminate and that error will be returned by this function. |
|
Lock path in fs, and set *lock to a lock representing the new lock, allocated in pool.
svn_fs_access_t ), else return SVN_ERR_FS_NO_USER . Set the 'owner' field in the new lock to the fs username.
comment is optional: it's either an xml-escapable UTF8 string which describes the lock, or it is is_dav_comment describes whether the comment was created by a generic DAV client; only mod_dav_svn's autoversioning feature needs to use it. If in doubt, pass 0.
If path is already locked, then return
token is a lock token such as can be generated using If expiration_date is zero, then create a non-expiring lock. Else, the lock will expire at expiration_date.
If current_rev is a valid revnum, then do an out-of-dateness check. If the revnum is less than the last-changed-revision of path (or if path doesn't exist in HEAD), return Note: at this time, only files can be locked. |
|
Remove the lock on path represented by token in fs.
If token doesn't point to a lock, return
If token points to a lock, but the username of fs's access context doesn't match the lock's owner, return Use pool for temporary allocations. |