Subversion
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
Remove local changes in a repository.

Functions

svn_error_tsvn_client_revert3 (const apr_array_header_t *paths, svn_depth_t depth, const apr_array_header_t *changelists, svn_boolean_t clear_changelists, svn_boolean_t metadata_only, svn_client_ctx_t *ctx, apr_pool_t *pool)
 Restore the pristine version of working copy paths, effectively undoing any local mods. More...
 
svn_error_tsvn_client_revert2 (const apr_array_header_t *paths, svn_depth_t depth, const apr_array_header_t *changelists, svn_client_ctx_t *ctx, apr_pool_t *pool)
 Similar to svn_client_revert2, but with clear_changelists set to FALSE and metadata_only set to FALSE. More...
 
svn_error_tsvn_client_revert (const apr_array_header_t *paths, svn_boolean_t recursive, svn_client_ctx_t *ctx, apr_pool_t *pool)
 Similar to svn_client_revert2(), but with changelists passed as NULL, and depth set according to recurse: if recurse is TRUE, depth is svn_depth_infinity, else if recurse is FALSE, depth is svn_depth_empty. More...
 

Detailed Description

Function Documentation

svn_error_t* svn_client_revert ( const apr_array_header_t *  paths,
svn_boolean_t  recursive,
svn_client_ctx_t ctx,
apr_pool_t *  pool 
)

Similar to svn_client_revert2(), but with changelists passed as NULL, and depth set according to recurse: if recurse is TRUE, depth is svn_depth_infinity, else if recurse is FALSE, depth is svn_depth_empty.

Note
Most APIs map recurse==FALSE to depth==svn_depth_files; revert is deliberately different.
Deprecated:
Provided for backwards compatibility with the 1.4 API.
svn_error_t* svn_client_revert2 ( const apr_array_header_t *  paths,
svn_depth_t  depth,
const apr_array_header_t *  changelists,
svn_client_ctx_t ctx,
apr_pool_t *  pool 
)

Similar to svn_client_revert2, but with clear_changelists set to FALSE and metadata_only set to FALSE.

Since
New in 1.5.
Deprecated:
Provided for backwards compatibility with the 1.8 API.
svn_error_t* svn_client_revert3 ( const apr_array_header_t *  paths,
svn_depth_t  depth,
const apr_array_header_t *  changelists,
svn_boolean_t  clear_changelists,
svn_boolean_t  metadata_only,
svn_client_ctx_t ctx,
apr_pool_t *  pool 
)

Restore the pristine version of working copy paths, effectively undoing any local mods.

For each path in paths, revert it if it is a file. Else if it is a directory, revert according to depth:

paths is an array of (const char *) local WC paths.

If depth is svn_depth_empty, revert just the properties on the directory; else if svn_depth_files, revert the properties and any files immediately under the directory; else if svn_depth_immediates, revert all of the preceding plus properties on immediate subdirectories; else if svn_depth_infinity, revert path and everything under it fully recursively.

changelists is an array of const char * changelist names, used as a restrictive filter on items reverted; that is, don't revert any item unless it's a member of one of those changelists. If changelists is empty (or altogether NULL), no changelist filtering occurs.

If clear_changelists is TRUE, then changelist information for the paths is cleared while reverting.

If metadata_only is TRUE, the files and directories aren't changed by the operation. If there are conflict marker files attached to the targets these are removed.

If ctx->notify_func2 is non-NULL, then for each item reverted, call ctx->notify_func2 with ctx->notify_baton2 and the path of the reverted item.

If an item specified for reversion is not under version control, then do not error, just invoke ctx->notify_func2 with ctx->notify_baton2, using notification code svn_wc_notify_skip.

Since
New in 1.9.