Alien-SVN
view release on metacpan or search on metacpan
src/subversion/subversion/include/svn_ra.h view on Meta::CPAN
apr_pool_t *pool);
/**
* Similar to svn_ra_open3(), but with @a uuid set to @c NULL.
*
* @since New in 1.3.
* @deprecated Provided for backward compatibility with the 1.4 API.
*/
SVN_DEPRECATED
svn_error_t *
svn_ra_open2(svn_ra_session_t **session_p,
const char *repos_URL,
const svn_ra_callbacks2_t *callbacks,
void *callback_baton,
apr_hash_t *config,
apr_pool_t *pool);
/**
* @see svn_ra_open2().
* @since New in 1.2.
* @deprecated Provided for backward compatibility with the 1.2 API.
*/
SVN_DEPRECATED
svn_error_t *
svn_ra_open(svn_ra_session_t **session_p,
const char *repos_URL,
const svn_ra_callbacks_t *callbacks,
void *callback_baton,
apr_hash_t *config,
apr_pool_t *pool);
/** Change the root URL of an open @a ra_session to point to a new path in the
* same repository. @a url is the new root URL. Use @a pool for
* temporary allocations.
*
* If @a url has a different repository root than the current session
* URL, return @c SVN_ERR_RA_ILLEGAL_URL.
*
* @since New in 1.4.
*/
svn_error_t *
svn_ra_reparent(svn_ra_session_t *ra_session,
const char *url,
apr_pool_t *pool);
/** Set @a *url to the session URL -- the URL to which @a ra_session was
* opened or most recently reparented.
*
* @since New in 1.5.
*/
svn_error_t *
svn_ra_get_session_url(svn_ra_session_t *ra_session,
const char **url,
apr_pool_t *pool);
/** Convert @a url into a path relative to the session URL of @a ra_session,
* setting @a *rel_path to that value. If @a url is not
* a child of the session URL, return @c SVN_ERR_RA_ILLEGAL_URL.
*
* The returned path is uri decoded to allow using it with the ra or other
* apis as a valid relpath.
*
* @since New in 1.7.
*/
svn_error_t *
svn_ra_get_path_relative_to_session(svn_ra_session_t *ra_session,
const char **rel_path,
const char *url,
apr_pool_t *pool);
/** Convert @a url into a path relative to the repository root URL of
* the repository with which @a ra_session is associated, setting @a
* *rel_path to that value. If @a url is not a child of repository
* root URL, return @c SVN_ERR_RA_ILLEGAL_URL.
*
* The returned path is uri decoded to allow using it with the ra or other
* apis as a valid relpath.
*
* @since New in 1.7.
*/
svn_error_t *
svn_ra_get_path_relative_to_root(svn_ra_session_t *ra_session,
const char **rel_path,
const char *url,
apr_pool_t *pool);
/**
* Get the latest revision number from the repository of @a session.
*
* Use @a pool for memory allocation.
*
* @since New in 1.2.
*/
svn_error_t *
svn_ra_get_latest_revnum(svn_ra_session_t *session,
svn_revnum_t *latest_revnum,
apr_pool_t *pool);
/**
* Get the latest revision number at time @a tm in the repository of
* @a session.
*
* Use @a pool for memory allocation.
*
* @since New in 1.2.
*/
svn_error_t *
svn_ra_get_dated_revision(svn_ra_session_t *session,
svn_revnum_t *revision,
apr_time_t tm,
apr_pool_t *pool);
/**
* Set the property @a name to @a value on revision @a rev in the repository
* of @a session.
*
* If @a value is @c NULL, delete the named revision property.
*
* If the server advertises the #SVN_RA_CAPABILITY_ATOMIC_REVPROPS capability
* and @a old_value_p is not @c NULL, then changing the property will fail with
* an error chain that contains #SVN_ERR_FS_PROP_BASEVALUE_MISMATCH if the
* present value of the property is not @a *old_value_p. (This is an atomic
* test-and-set).
* @a *old_value_p may be @c NULL, representing that the property must be not
* already set.
*
* If the capability is not advertised, then @a old_value_p MUST be @c NULL.
*
* Please note that properties attached to revisions are @em unversioned.
*
* Use @a pool for memory allocation.
*
* @see svn_fs_change_rev_prop2(), svn_error_find_cause().
*
* @since New in 1.7.
*/
( run in 0.529 second using v1.01-cache-2.11-cpan-172d661cebc )