Subversion
Functions
Switch a working copy to a different repository.

Functions

svn_error_tsvn_client_relocate2 (const char *wcroot_dir, const char *from_prefix, const char *to_prefix, svn_boolean_t ignore_externals, svn_client_ctx_t *ctx, apr_pool_t *pool)
 Recursively modify a working copy rooted at wcroot_dir, changing any repository URLs that begin with from_prefix to begin with to_prefix instead. More...
 
svn_error_tsvn_client_relocate (const char *dir, const char *from_prefix, const char *to_prefix, svn_boolean_t recurse, svn_client_ctx_t *ctx, apr_pool_t *pool)
 Similar to svn_client_relocate2(), but with ignore_externals always TRUE. More...
 

Detailed Description

Function Documentation

◆ svn_client_relocate()

svn_error_t* svn_client_relocate ( const char *  dir,
const char *  from_prefix,
const char *  to_prefix,
svn_boolean_t  recurse,
svn_client_ctx_t ctx,
apr_pool_t *  pool 
)

Similar to svn_client_relocate2(), but with ignore_externals always TRUE.

Note
As of the 1.7 API, dir is required to be a working copy root directory, and recurse is required to be TRUE.
Deprecated:
Provided for limited backwards compatibility with the 1.6 API.

◆ svn_client_relocate2()

svn_error_t* svn_client_relocate2 ( const char *  wcroot_dir,
const char *  from_prefix,
const char *  to_prefix,
svn_boolean_t  ignore_externals,
svn_client_ctx_t ctx,
apr_pool_t *  pool 
)

Recursively modify a working copy rooted at wcroot_dir, changing any repository URLs that begin with from_prefix to begin with to_prefix instead.

Parameters
wcroot_dirWorking copy root directory
from_prefixOriginal URL
to_prefixNew URL
ignore_externalsIf not set, recurse into external working copies after relocating the primary working copy
ctxsvn_client_ctx_t
poolThe pool from which to perform memory allocations
Since
New in 1.7