Subversion
Macros | Functions
Dynamically query the server's capabilities.

Macros

#define SVN_RA_CAPABILITY_DEPTH   "depth"
 The capability of understanding svn_depth_t (e.g., the server understands what the client means when the client describes the depth of a working copy to the server.) More...
 
#define SVN_RA_CAPABILITY_MERGEINFO   "mergeinfo"
 The capability of doing the right thing with merge-tracking information. More...
 
#define SVN_RA_CAPABILITY_LOG_REVPROPS   "log-revprops"
 The capability of retrieving arbitrary revprops in svn_ra_get_log2. More...
 
#define SVN_RA_CAPABILITY_PARTIAL_REPLAY   "partial-replay"
 The capability of replaying a directory in the repository (partial replay). More...
 
#define SVN_RA_CAPABILITY_COMMIT_REVPROPS   "commit-revprops"
 The capability of including revision properties in a commit. More...
 
#define SVN_RA_CAPABILITY_ATOMIC_REVPROPS   "atomic-revprops"
 The capability of specifying (and atomically verifying) expected preexisting values when modifying revprops. More...
 
#define SVN_RA_CAPABILITY_INHERITED_PROPS   "inherited-props"
 The capability to get inherited properties. More...
 
#define SVN_RA_CAPABILITY_EPHEMERAL_TXNPROPS   "ephemeral-txnprops"
 The capability of a server to automatically remove transaction properties prefixed with SVN_PROP_EPHEMERAL_PREFIX. More...
 
#define SVN_RA_CAPABILITY_GET_FILE_REVS_REVERSE   "get-file-revs-reversed"
 The capability of a server to walk revisions backwards in svn_ra_get_file_revs2. More...
 
#define SVN_RA_CAPABILITY_LIST   "list"
 The capability of a server to understand the list command. More...
 

Functions

svn_error_tsvn_ra_has_capability (svn_ra_session_t *session, svn_boolean_t *has, const char *capability, apr_pool_t *pool)
 Set *has to TRUE if the server represented by session has capability (one of the capabilities beginning with "SVN_RA_CAPABILITY_"), else set *has to FALSE. More...
 

Detailed Description

Macro Definition Documentation

#define SVN_RA_CAPABILITY_ATOMIC_REVPROPS   "atomic-revprops"

The capability of specifying (and atomically verifying) expected preexisting values when modifying revprops.

Since
New in 1.7.

Definition at line 2210 of file svn_ra.h.

#define SVN_RA_CAPABILITY_COMMIT_REVPROPS   "commit-revprops"

The capability of including revision properties in a commit.

Since
New in 1.5.

Definition at line 2202 of file svn_ra.h.

#define SVN_RA_CAPABILITY_DEPTH   "depth"

The capability of understanding svn_depth_t (e.g., the server understands what the client means when the client describes the depth of a working copy to the server.)

Since
New in 1.5.

Definition at line 2171 of file svn_ra.h.

#define SVN_RA_CAPABILITY_EPHEMERAL_TXNPROPS   "ephemeral-txnprops"

The capability of a server to automatically remove transaction properties prefixed with SVN_PROP_EPHEMERAL_PREFIX.

Since
New in 1.8.

Definition at line 2225 of file svn_ra.h.

#define SVN_RA_CAPABILITY_GET_FILE_REVS_REVERSE   "get-file-revs-reversed"

The capability of a server to walk revisions backwards in svn_ra_get_file_revs2.

Since
New in 1.8.

Definition at line 2233 of file svn_ra.h.

#define SVN_RA_CAPABILITY_INHERITED_PROPS   "inherited-props"

The capability to get inherited properties.

Since
New in 1.8.

Definition at line 2217 of file svn_ra.h.

#define SVN_RA_CAPABILITY_LIST   "list"

The capability of a server to understand the list command.

Since
New in 1.10.

Definition at line 2240 of file svn_ra.h.

#define SVN_RA_CAPABILITY_LOG_REVPROPS   "log-revprops"

The capability of retrieving arbitrary revprops in svn_ra_get_log2.

Since
New in 1.5.

Definition at line 2188 of file svn_ra.h.

#define SVN_RA_CAPABILITY_MERGEINFO   "mergeinfo"

The capability of doing the right thing with merge-tracking information.

This capability should be reported bidirectionally, because some repositories may want to reject clients that do not self-report as knowing how to handle merge-tracking.

Since
New in 1.5.

Definition at line 2181 of file svn_ra.h.

#define SVN_RA_CAPABILITY_PARTIAL_REPLAY   "partial-replay"

The capability of replaying a directory in the repository (partial replay).

Since
New in 1.5.

Definition at line 2195 of file svn_ra.h.

Function Documentation

svn_error_t* svn_ra_has_capability ( svn_ra_session_t session,
svn_boolean_t has,
const char *  capability,
apr_pool_t *  pool 
)

Set *has to TRUE if the server represented by session has capability (one of the capabilities beginning with "SVN_RA_CAPABILITY_"), else set *has to FALSE.

If capability isn't recognized, throw SVN_ERR_UNKNOWN_CAPABILITY, with the effect on *has undefined.

Use pool for all allocation.

Since
New in 1.5.