Main Page | Modules | Data Structures | File List | Data Fields | Globals

filesystem roots

Roots. More...

Typedefs

typedef svn_fs_root_t svn_fs_root_t
 The Filesystem Root object.


Functions

svn_error_tsvn_fs_revision_root (svn_fs_root_t **root_p, svn_fs_t *fs, svn_revnum_t rev, apr_pool_t *pool)
 Set *root_p to the root directory of revision rev in filesystem fs.

svn_error_tsvn_fs_txn_root (svn_fs_root_t **root_p, svn_fs_txn_t *txn, apr_pool_t *pool)
 Set *root_p to the root directory of txn.

void svn_fs_close_root (svn_fs_root_t *root)
 Free the root directory root.

svn_fs_tsvn_fs_root_fs (svn_fs_root_t *root)
 Return the filesystem to which root belongs.

svn_boolean_t svn_fs_is_txn_root (svn_fs_root_t *root)
 Return TRUE iff root is a transaction root.

svn_boolean_t svn_fs_is_revision_root (svn_fs_root_t *root)
 Return TRUE iff root is a revision root.

const char * svn_fs_txn_root_name (svn_fs_root_t *root, apr_pool_t *pool)
 If root is the root of a transaction, return the name of the transaction, allocated in pool; otherwise, return null.

svn_revnum_t svn_fs_revision_root_revision (svn_fs_root_t *root)
 If root is the root of a revision, return the revision number.


Detailed Description

Roots.

An svn_fs_root_t object represents the root directory of some revision or transaction in a filesystem. To refer to particular node, you provide a root, and a directory path relative that root.


Function Documentation

void svn_fs_close_root svn_fs_root_t root  ) 
 

Free the root directory root.

Simply clearing or destroying the pool root was allocated in will have the same effect as calling this function.

svn_error_t* svn_fs_revision_root svn_fs_root_t **  root_p,
svn_fs_t fs,
svn_revnum_t  rev,
apr_pool_t *  pool
 

Set *root_p to the root directory of revision rev in filesystem fs.

Allocate *root_p in pool.

svn_revnum_t svn_fs_revision_root_revision svn_fs_root_t root  ) 
 

If root is the root of a revision, return the revision number.

Otherwise, return SVN_INVALID_REVNUM.

svn_error_t* svn_fs_txn_root svn_fs_root_t **  root_p,
svn_fs_txn_t txn,
apr_pool_t *  pool
 

Set *root_p to the root directory of txn.

Allocate *root_p in pool.


Generated on Wed Oct 13 23:55:36 2004 for Subversion by doxygen 1.3.4