Subversion
Functions

Functions

svn_error_t * svn_client_checkout4 (svn_revnum_t *result_rev, const char *URL, const char *path, const svn_opt_revision_t *peg_revision, const svn_opt_revision_t *revision, svn_depth_t depth, svn_boolean_t ignore_externals, svn_boolean_t allow_unver_obstructions, const svn_version_t *wc_format_version, svn_tristate_t store_pristine, svn_client_ctx_t *ctx, apr_pool_t *pool)
 Checkout a working copy from a repository. More...
 
svn_error_t * svn_client_checkout3 (svn_revnum_t *result_rev, const char *URL, const char *path, const svn_opt_revision_t *peg_revision, const svn_opt_revision_t *revision, svn_depth_t depth, svn_boolean_t ignore_externals, svn_boolean_t allow_unver_obstructions, svn_client_ctx_t *ctx, apr_pool_t *pool)
 Similar to svn_client_checkout4() but with wc_format_version set to NULL and store_pristine set to svn_tristate_unknown. More...
 
svn_error_t * svn_client_checkout2 (svn_revnum_t *result_rev, const char *URL, const char *path, const svn_opt_revision_t *peg_revision, const svn_opt_revision_t *revision, svn_boolean_t recurse, svn_boolean_t ignore_externals, svn_client_ctx_t *ctx, apr_pool_t *pool)
 Similar to svn_client_checkout3() but with allow_unver_obstructions always set to FALSE, and depth set according to recurse: if recurse is TRUE, depth is svn_depth_infinity, if recurse is FALSE, depth is svn_depth_files. More...
 
svn_error_t * svn_client_checkout (svn_revnum_t *result_rev, const char *URL, const char *path, const svn_opt_revision_t *revision, svn_boolean_t recurse, svn_client_ctx_t *ctx, apr_pool_t *pool)
 Similar to svn_client_checkout2(), but with peg_revision always set to svn_opt_revision_unspecified and ignore_externals always set to FALSE. More...
 

Detailed Description

Function Documentation

◆ svn_client_checkout()

svn_error_t* svn_client_checkout ( svn_revnum_t *  result_rev,
const char *  URL,
const char *  path,
const svn_opt_revision_t *  revision,
svn_boolean_t  recurse,
svn_client_ctx_t *  ctx,
apr_pool_t *  pool 
)

Similar to svn_client_checkout2(), but with peg_revision always set to svn_opt_revision_unspecified and ignore_externals always set to FALSE.

Deprecated:
Provided for backward compatibility with the 1.1 API.

◆ svn_client_checkout2()

svn_error_t* svn_client_checkout2 ( svn_revnum_t *  result_rev,
const char *  URL,
const char *  path,
const svn_opt_revision_t *  peg_revision,
const svn_opt_revision_t *  revision,
svn_boolean_t  recurse,
svn_boolean_t  ignore_externals,
svn_client_ctx_t *  ctx,
apr_pool_t *  pool 
)

Similar to svn_client_checkout3() but with allow_unver_obstructions always set to FALSE, and depth set according to recurse: if recurse is TRUE, depth is svn_depth_infinity, if recurse is FALSE, depth is svn_depth_files.

Deprecated:
Provided for backward compatibility with the 1.4 API.

◆ svn_client_checkout3()

svn_error_t* svn_client_checkout3 ( svn_revnum_t *  result_rev,
const char *  URL,
const char *  path,
const svn_opt_revision_t *  peg_revision,
const svn_opt_revision_t *  revision,
svn_depth_t  depth,
svn_boolean_t  ignore_externals,
svn_boolean_t  allow_unver_obstructions,
svn_client_ctx_t *  ctx,
apr_pool_t *  pool 
)

Similar to svn_client_checkout4() but with wc_format_version set to NULL and store_pristine set to svn_tristate_unknown.

Since
New in 1.5.
Deprecated:
Provided for backward compatibility with the 1.10 API.

◆ svn_client_checkout4()

svn_error_t* svn_client_checkout4 ( svn_revnum_t *  result_rev,
const char *  URL,
const char *  path,
const svn_opt_revision_t *  peg_revision,
const svn_opt_revision_t *  revision,
svn_depth_t  depth,
svn_boolean_t  ignore_externals,
svn_boolean_t  allow_unver_obstructions,
const svn_version_t *  wc_format_version,
svn_tristate_t  store_pristine,
svn_client_ctx_t *  ctx,
apr_pool_t *  pool 
)

Checkout a working copy from a repository.

Parameters
[out]result_revIf non-NULL, the value of the revision checked out from the repository.
[in]URLThe repository URL of the checkout source.
[in]pathThe root of the new working copy.
[in]peg_revisionThe peg revision.
[in]revisionThe operative revision.
[in]depthThe depth of the operation. If svn_depth_unknown, then behave as if for svn_depth_infinity, except in the case of resuming a previous checkout of path (i.e., updating), in which case use the depth of the existing working copy.
[in]ignore_externalsIf TRUE, don't process externals definitions as part of this operation.
[in]allow_unver_obstructionsIf TRUE, then tolerate existing unversioned items that obstruct incoming paths. Only obstructions of the same type (file or dir) as the added item are tolerated. The text of obstructing files is left as-is, effectively treating it as a user modification after the checkout. Working properties of obstructing items are set equal to the base properties.
If FALSE, then abort if there are any unversioned obstructing items.
[in]wc_format_versionis the version number of the oldest Subversion client with which the created working copy should be compatible; NULL means the default version. See svn_client_default_wc_version(), svn_client_get_wc_formats_supported().
[in]store_pristineIf svn_tristate_true, the pristine contents of all files in the working copy will be stored on disk.
If svn_tristate_false, the pristine contents will be fetched on-demand when required by the operation.
If svn_tristate_unknown, the default setting will be used.
[in]ctxThe standard client context, used for authentication and notification.
[in]poolUsed for any temporary allocation.
Returns
A pointer to an svn_error_t of the type (this list is not exhaustive):
SVN_ERR_UNSUPPORTED_FEATURE if URL refers to a file rather than a directory;
SVN_ERR_RA_ILLEGAL_URL if URL does not exist;
SVN_ERR_CLIENT_BAD_REVISION if revision is not one of svn_opt_revision_number, svn_opt_revision_head, or svn_opt_revision_date.
If no error occurred, return SVN_NO_ERROR.
Since
New in 1.15.
See also
svn_depth_t
svn_client_ctx_t
Revisions and Peg Revisions for a discussion of operative and peg revisions.