Subversion 1.6.16
Functions

Client session related functions

Client supporting subsystem

Functions

svn_error_tsvn_client_url_from_path (const char **url, const char *path_or_url, apr_pool_t *pool)
 Set *url to the URL for path_or_url.
svn_error_tsvn_client_root_url_from_path (const char **url, const char *path_or_url, svn_client_ctx_t *ctx, apr_pool_t *pool)
 Set *url to the repository root URL of the repository in which path_or_url is versioned (or scheduled to be versioned), allocated in pool.
svn_error_tsvn_client_uuid_from_url (const char **uuid, const char *url, svn_client_ctx_t *ctx, apr_pool_t *pool)
 Get repository uuid for url.
svn_error_tsvn_client_uuid_from_path (const char **uuid, const char *path, svn_wc_adm_access_t *adm_access, svn_client_ctx_t *ctx, apr_pool_t *pool)
 Return the repository uuid for working-copy path, allocated in pool.
svn_error_tsvn_client_open_ra_session (svn_ra_session_t **session, const char *url, svn_client_ctx_t *ctx, apr_pool_t *pool)
 Open an RA session rooted at url, and return it in *session.

Function Documentation

svn_error_t* svn_client_open_ra_session ( svn_ra_session_t **  session,
const char *  url,
svn_client_ctx_t ctx,
apr_pool_t *  pool 
)

Open an RA session rooted at url, and return it in *session.

Use the authentication baton stored in ctx for authentication. *session is allocated in pool.

Since:
New in 1.3.
Note:
This function is similar to svn_ra_open3(), but the caller avoids having to providing its own callback functions.
svn_error_t* svn_client_root_url_from_path ( const char **  url,
const char *  path_or_url,
svn_client_ctx_t ctx,
apr_pool_t *  pool 
)

Set *url to the repository root URL of the repository in which path_or_url is versioned (or scheduled to be versioned), allocated in pool.

ctx is required for possible repository authentication.

Since:
New in 1.5.
svn_error_t* svn_client_url_from_path ( const char **  url,
const char *  path_or_url,
apr_pool_t *  pool 
)

Set *url to the URL for path_or_url.

If path_or_url is already a URL, set *url to path_or_url.

If path_or_url is a versioned item, set *url to path_or_url's entry URL. If path_or_url is unversioned (has no entry), set *url to NULL.

svn_error_t* svn_client_uuid_from_path ( const char **  uuid,
const char *  path,
svn_wc_adm_access_t adm_access,
svn_client_ctx_t ctx,
apr_pool_t *  pool 
)

Return the repository uuid for working-copy path, allocated in pool.

Use adm_access to retrieve the uuid from path's entry; if not present in the entry, then look in its parents. If not present in the workingcopy call svn_client_uuid_from_url() to retrieve, using the entry's URL. ctx is required for possible repository authentication.

Note:
The only reason this function falls back on svn_client_uuid_from_url() is for compatibility purposes. Old and detached working copies may not have uuids in the entries file.
svn_error_t* svn_client_uuid_from_url ( const char **  uuid,
const char *  url,
svn_client_ctx_t ctx,
apr_pool_t *  pool 
)

Get repository uuid for url.

Use a pool to open a temporary RA session to url, discover the repository uuid, and free the session. Return the uuid in uuid, allocated in pool. ctx is required for possible repository authentication.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines