Multi Command Context related functions


Typedefs

typedef svn_client_mtcc_t svn_client_mtcc_t
 This is a structure which stores a list of repository commands that can be played to a repository as a single operation.

Functions

svn_error_tsvn_client_mtcc_create (svn_client_mtcc_t **mtcc, const char *anchor_url, svn_revnum_t base_revision, svn_client_ctx_t *ctx, apr_pool_t *result_pool, apr_pool_t *scratch_pool)
 Creates a new multicommand context for an operation on anchor_url and its descendants.
svn_error_tsvn_client_mtcc_add_add_file (const char *relpath, svn_stream_t *src_stream, const svn_checksum_t *src_checksum, svn_client_mtcc_t *mtcc, apr_pool_t *scratch_pool)
 Adds a file add operation of relpath to mtcc.
svn_error_tsvn_client_mtcc_add_copy (const char *src_relpath, svn_revnum_t revision, const char *dst_relpath, svn_client_mtcc_t *mtcc, apr_pool_t *scratch_pool)
 Adds a copy operation of the node src_relpath at revision revision to dst_relpath to mtcc.
svn_error_tsvn_client_mtcc_add_delete (const char *relpath, svn_client_mtcc_t *mtcc, apr_pool_t *scratch_pool)
 Adds a delete of relpath to mtcc.
svn_error_tsvn_client_mtcc_add_mkdir (const char *relpath, svn_client_mtcc_t *mtcc, apr_pool_t *scratch_pool)
 Adds an mkdir operation of relpath to mtcc.
svn_error_tsvn_client_mtcc_add_move (const char *src_relpath, const char *dst_relpath, svn_client_mtcc_t *mtcc, apr_pool_t *scratch_pool)
 Adds a move operation of the node src_relpath to dst_relpath to mtcc.
svn_error_tsvn_client_mtcc_add_propset (const char *relpath, const char *propname, const svn_string_t *propval, svn_boolean_t skip_checks, svn_client_mtcc_t *mtcc, apr_pool_t *scratch_pool)
 Adds a propset operation for the property propname to propval (which can be NULL for a delete) on relpath to mtcc.
svn_error_tsvn_client_mtcc_add_update_file (const char *relpath, svn_stream_t *src_stream, const svn_checksum_t *src_checksum, svn_stream_t *base_stream, const svn_checksum_t *base_checksum, svn_client_mtcc_t *mtcc, apr_pool_t *scratch_pool)
 Adds an update file operation for relpath to mtcc.
svn_error_tsvn_client_mtcc_check_path (svn_node_kind_t *kind, const char *relpath, svn_boolean_t check_repository, svn_client_mtcc_t *mtcc, apr_pool_t *scratch_pool)
 Obtains the kind of node at relpath in the current state of mtcc.
svn_error_tsvn_client_mtcc_commit (apr_hash_t *revprop_table, svn_commit_callback2_t commit_callback, void *commit_baton, svn_client_mtcc_t *mtcc, apr_pool_t *scratch_pool)
 Commits all operations stored in mtcc as a new revision and destroys mtcc.

Typedef Documentation

typedef struct svn_client_mtcc_t svn_client_mtcc_t

This is a structure which stores a list of repository commands that can be played to a repository as a single operation.

Use svn_client_mtcc_create() to create instances

Since:
New in 1.9.

Definition at line 56 of file svn_client_mtcc.h.


Function Documentation

svn_error_t* svn_client_mtcc_add_add_file ( const char *  relpath,
svn_stream_t src_stream,
const svn_checksum_t src_checksum,
svn_client_mtcc_t mtcc,
apr_pool_t *  scratch_pool 
)

Adds a file add operation of relpath to mtcc.

If src_checksum is not null it will be provided to the repository to verify if the file was transferred successfully.

Perform temporary allocations in scratch_pool.

Note:
The current implementation keeps src_stream open until mtcc is committed.
Since:
New in 1.9.

svn_error_t* svn_client_mtcc_add_copy ( const char *  src_relpath,
svn_revnum_t  revision,
const char *  dst_relpath,
svn_client_mtcc_t mtcc,
apr_pool_t *  scratch_pool 
)

Adds a copy operation of the node src_relpath at revision revision to dst_relpath to mtcc.

Perform temporary allocations in scratch_pool.

Since:
New in 1.9.

svn_error_t* svn_client_mtcc_add_delete ( const char *  relpath,
svn_client_mtcc_t mtcc,
apr_pool_t *  scratch_pool 
)

Adds a delete of relpath to mtcc.

Perform temporary allocations in scratch_pool.

Since:
New in 1.9.

svn_error_t* svn_client_mtcc_add_mkdir ( const char *  relpath,
svn_client_mtcc_t mtcc,
apr_pool_t *  scratch_pool 
)

Adds an mkdir operation of relpath to mtcc.

Perform temporary allocations in scratch_pool.

Since:
New in 1.9.

svn_error_t* svn_client_mtcc_add_move ( const char *  src_relpath,
const char *  dst_relpath,
svn_client_mtcc_t mtcc,
apr_pool_t *  scratch_pool 
)

Adds a move operation of the node src_relpath to dst_relpath to mtcc.

Perform temporary allocations in scratch_pool.

Since:
New in 1.9.

svn_error_t* svn_client_mtcc_add_propset ( const char *  relpath,
const char *  propname,
const svn_string_t propval,
svn_boolean_t  skip_checks,
svn_client_mtcc_t mtcc,
apr_pool_t *  scratch_pool 
)

Adds a propset operation for the property propname to propval (which can be NULL for a delete) on relpath to mtcc.

If skip_checks is not FALSE Subversion defined properties are verified for correctness like svn_client_propset_remote()

Perform temporary allocations in scratch_pool.

Since:
New in 1.9.

svn_error_t* svn_client_mtcc_add_update_file ( const char *  relpath,
svn_stream_t src_stream,
const svn_checksum_t src_checksum,
svn_stream_t base_stream,
const svn_checksum_t base_checksum,
svn_client_mtcc_t mtcc,
apr_pool_t *  scratch_pool 
)

Adds an update file operation for relpath to mtcc.

The final version of the file is provided with src_stream. If src_checksum is provided it will be provided to the repository to verify the final result.

If base_checksum is provided it will be used by the repository to verify if the base file matches this checksum.

If base_stream is not NULL only the binary diff from base_stream to src_stream is written to the repository.

Perform temporary allocations in scratch_pool.

Note:
Callers should assume that the mtcc requires src_stream and base_stream to be valid until mtcc is committed.
Since:
New in 1.9.

svn_error_t* svn_client_mtcc_check_path ( svn_node_kind_t kind,
const char *  relpath,
svn_boolean_t  check_repository,
svn_client_mtcc_t mtcc,
apr_pool_t *  scratch_pool 
)

Obtains the kind of node at relpath in the current state of mtcc.

This value might be from the cache (in case of modifications, copies) or fetched from the repository.

If check_repository is TRUE, verify the node type with the repository at least once and cache the result for further checks.

When a node does not exist this functions sets *kind to svn_node_node.

Since:
New in 1.9.

svn_error_t* svn_client_mtcc_commit ( apr_hash_t *  revprop_table,
svn_commit_callback2_t  commit_callback,
void *  commit_baton,
svn_client_mtcc_t mtcc,
apr_pool_t *  scratch_pool 
)

Commits all operations stored in mtcc as a new revision and destroys mtcc.

Since:
New in 1.9.

svn_error_t* svn_client_mtcc_create ( svn_client_mtcc_t **  mtcc,
const char *  anchor_url,
svn_revnum_t  base_revision,
svn_client_ctx_t ctx,
apr_pool_t *  result_pool,
apr_pool_t *  scratch_pool 
)

Creates a new multicommand context for an operation on anchor_url and its descendants.

Allocate the context in result_pool and perform temporary allocations in scratch_pool.

Since:
New in 1.9.


Generated on Mon Mar 17 15:45:54 2014 for Subversion by  doxygen 1.4.7