#include <apr_tables.h>
#include "svn_types.h"
#include "svn_wc.h"
#include "svn_string.h"
#include "svn_error.h"
#include "svn_opt.h"
#include "svn_version.h"
Go to the source code of this file.
Data Structures | |
struct | svn_client_proplist_item_t |
This is a structure which stores a filename and a hash of property names and values. More... | |
struct | svn_client_commit_info_t |
Information about commits passed back to client from this module. More... | |
struct | svn_client_commit_item_t |
The commit candidate structure. More... | |
struct | svn_client_ctx_t |
A client context structure, which holds client specific callbacks, batons, serves as a cache for configuration options, and other various and sundry things. More... | |
struct | svn_info_t |
| |
Typedefs | |
typedef svn_client_proplist_item_t | svn_client_proplist_item_t |
This is a structure which stores a filename and a hash of property names and values. | |
typedef svn_client_commit_info_t | svn_client_commit_info_t |
Information about commits passed back to client from this module. | |
typedef svn_client_commit_item_t | svn_client_commit_item_t |
The commit candidate structure. | |
typedef svn_error_t *(* | svn_client_get_commit_log_t )(const char **log_msg, const char **tmp_file, apr_array_header_t *commit_items, void *baton, apr_pool_t *pool) |
Callback type used by commit-y operations to get a commit log message from the caller. | |
typedef svn_error_t *(* | svn_client_blame_receiver_t )(void *baton, apr_int64_t line_no, svn_revnum_t revision, const char *author, const char *date, const char *line, apr_pool_t *pool) |
Callback type used by svn_client_blame() to notify the caller that line line_no of the blamed file was last changed in revision by author on date, and that the contents were line. | |
typedef svn_client_ctx_t | svn_client_ctx_t |
A client context structure, which holds client specific callbacks, batons, serves as a cache for configuration options, and other various and sundry things. | |
typedef svn_info_t | svn_info_t |
| |
typedef svn_error_t *(* | svn_info_receiver_t )(void *baton, const char *path, const svn_info_t *info, apr_pool_t *pool) |
| |
Functions | |
const svn_version_t * | svn_client_version (void) |
| |
void | svn_client_get_simple_prompt_provider (svn_auth_provider_object_t **provider, svn_auth_simple_prompt_func_t prompt_func, void *prompt_baton, int retry_limit, apr_pool_t *pool) |
Create and return *provider, an authentication provider of type svn_auth_cred_simple_t that gets information by prompting the user with prompt_func and prompt_baton. | |
void | svn_client_get_username_prompt_provider (svn_auth_provider_object_t **provider, svn_auth_username_prompt_func_t prompt_func, void *prompt_baton, int retry_limit, apr_pool_t *pool) |
Create and return *provider, an authentication provider of type svn_auth_cred_username_t that gets information by prompting the user with prompt_func and prompt_baton. | |
void | svn_client_get_simple_provider (svn_auth_provider_object_t **provider, apr_pool_t *pool) |
Create and return *provider, an authentication provider of type svn_auth_cred_simple_t that gets/sets information from the user's ~/.subversion configuration directory. | |
void | svn_client_get_windows_simple_provider (svn_auth_provider_object_t **provider, apr_pool_t *pool) |
| |
void | svn_client_get_username_provider (svn_auth_provider_object_t **provider, apr_pool_t *pool) |
Create and return *provider, an authentication provider of type svn_auth_cred_username_t that gets/sets information from a user's ~/.subversion configuration directory. | |
void | svn_client_get_ssl_server_trust_file_provider (svn_auth_provider_object_t **provider, apr_pool_t *pool) |
Create and return *provider, an authentication provider of type svn_auth_cred_ssl_server_trust_t , allocated in pool. | |
void | svn_client_get_ssl_client_cert_file_provider (svn_auth_provider_object_t **provider, apr_pool_t *pool) |
Create and return *provider, an authentication provider of type svn_auth_cred_ssl_client_cert_t , allocated in pool. | |
void | svn_client_get_ssl_client_cert_pw_file_provider (svn_auth_provider_object_t **provider, apr_pool_t *pool) |
Create and return *provider, an authentication provider of type svn_auth_cred_ssl_client_cert_pw_t , allocated in pool. | |
void | svn_client_get_ssl_server_trust_prompt_provider (svn_auth_provider_object_t **provider, svn_auth_ssl_server_trust_prompt_func_t prompt_func, void *prompt_baton, apr_pool_t *pool) |
Create and return *provider, an authentication provider of type svn_auth_cred_ssl_server_trust_t , allocated in pool. | |
void | svn_client_get_ssl_client_cert_prompt_provider (svn_auth_provider_object_t **provider, svn_auth_ssl_client_cert_prompt_func_t prompt_func, void *prompt_baton, int retry_limit, apr_pool_t *pool) |
Create and return *provider, an authentication provider of type svn_auth_cred_ssl_client_cert_t , allocated in pool. | |
void | svn_client_get_ssl_client_cert_pw_prompt_provider (svn_auth_provider_object_t **provider, svn_auth_ssl_client_cert_pw_prompt_func_t prompt_func, void *prompt_baton, int retry_limit, apr_pool_t *pool) |
Create and return *provider, an authentication provider of type svn_auth_cred_ssl_client_cert_pw_t , allocated in pool. | |
svn_error_t * | svn_client_create_context (svn_client_ctx_t **ctx, apr_pool_t *pool) |
Initialize a client context. | |
svn_error_t * | svn_client_checkout2 (svn_revnum_t *result_rev, const char *URL, const char *path, const svn_opt_revision_t *peg_revision, const svn_opt_revision_t *revision, svn_boolean_t recurse, svn_boolean_t ignore_externals, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_checkout (svn_revnum_t *result_rev, const char *URL, const char *path, const svn_opt_revision_t *revision, svn_boolean_t recurse, svn_client_ctx_t *ctx, apr_pool_t *pool) |
svn_error_t * | svn_client_update2 (apr_array_header_t **result_revs, const apr_array_header_t *paths, const svn_opt_revision_t *revision, svn_boolean_t recurse, svn_boolean_t ignore_externals, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_update (svn_revnum_t *result_rev, const char *path, const svn_opt_revision_t *revision, svn_boolean_t recurse, svn_client_ctx_t *ctx, apr_pool_t *pool) |
svn_error_t * | svn_client_switch (svn_revnum_t *result_rev, const char *path, const char *url, const svn_opt_revision_t *revision, svn_boolean_t recurse, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Switch working tree path to url at revision, authenticating with the authentication baton cached in ctx. | |
svn_error_t * | svn_client_add2 (const char *path, svn_boolean_t recursive, svn_boolean_t force, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_add (const char *path, svn_boolean_t recursive, svn_client_ctx_t *ctx, apr_pool_t *pool) |
svn_error_t * | svn_client_mkdir (svn_client_commit_info_t **commit_info, const apr_array_header_t *paths, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Create a directory, either in a repository or a working copy. | |
svn_error_t * | svn_client_delete (svn_client_commit_info_t **commit_info, const apr_array_header_t *paths, svn_boolean_t force, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Delete items from a repository or working copy. | |
svn_error_t * | svn_client_import (svn_client_commit_info_t **commit_info, const char *path, const char *url, svn_boolean_t nonrecursive, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Import file or directory path into repository directory url at head, authenticating with the authentication baton cached in ctx, and using ctx->log_msg_func/ctx->log_msg_baton to get a log message for the (implied) commit. | |
svn_error_t * | svn_client_commit2 (svn_client_commit_info_t **commit_info, const apr_array_header_t *targets, svn_boolean_t recurse, svn_boolean_t keep_locks, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_commit (svn_client_commit_info_t **commit_info, const apr_array_header_t *targets, svn_boolean_t nonrecursive, svn_client_ctx_t *ctx, apr_pool_t *pool) |
svn_error_t * | svn_client_status2 (svn_revnum_t *result_rev, const char *path, const svn_opt_revision_t *revision, svn_wc_status_func2_t status_func, void *status_baton, svn_boolean_t recurse, svn_boolean_t get_all, svn_boolean_t update, svn_boolean_t no_ignore, svn_boolean_t ignore_externals, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_status (svn_revnum_t *result_rev, const char *path, svn_opt_revision_t *revision, svn_wc_status_func_t status_func, void *status_baton, svn_boolean_t recurse, svn_boolean_t get_all, svn_boolean_t update, svn_boolean_t no_ignore, svn_client_ctx_t *ctx, apr_pool_t *pool) |
svn_error_t * | svn_client_log2 (const apr_array_header_t *targets, const svn_opt_revision_t *start, const svn_opt_revision_t *end, int limit, svn_boolean_t discover_changed_paths, svn_boolean_t strict_node_history, svn_log_message_receiver_t receiver, void *receiver_baton, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_log (const apr_array_header_t *targets, const svn_opt_revision_t *start, const svn_opt_revision_t *end, svn_boolean_t discover_changed_paths, svn_boolean_t strict_node_history, svn_log_message_receiver_t receiver, void *receiver_baton, svn_client_ctx_t *ctx, apr_pool_t *pool) |
svn_error_t * | svn_client_blame2 (const char *path_or_url, const svn_opt_revision_t *peg_revision, const svn_opt_revision_t *start, const svn_opt_revision_t *end, svn_client_blame_receiver_t receiver, void *receiver_baton, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_blame (const char *path_or_url, const svn_opt_revision_t *start, const svn_opt_revision_t *end, svn_client_blame_receiver_t receiver, void *receiver_baton, svn_client_ctx_t *ctx, apr_pool_t *pool) |
svn_error_t * | svn_client_diff2 (const apr_array_header_t *diff_options, const char *path1, const svn_opt_revision_t *revision1, const char *path2, const svn_opt_revision_t *revision2, svn_boolean_t recurse, svn_boolean_t ignore_ancestry, svn_boolean_t no_diff_deleted, svn_boolean_t ignore_content_type, apr_file_t *outfile, apr_file_t *errfile, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_diff (const apr_array_header_t *diff_options, const char *path1, const svn_opt_revision_t *revision1, const char *path2, const svn_opt_revision_t *revision2, svn_boolean_t recurse, svn_boolean_t ignore_ancestry, svn_boolean_t no_diff_deleted, apr_file_t *outfile, apr_file_t *errfile, svn_client_ctx_t *ctx, apr_pool_t *pool) |
svn_error_t * | svn_client_diff_peg2 (const apr_array_header_t *diff_options, const char *path, const svn_opt_revision_t *peg_revision, const svn_opt_revision_t *start_revision, const svn_opt_revision_t *end_revision, svn_boolean_t recurse, svn_boolean_t ignore_ancestry, svn_boolean_t no_diff_deleted, svn_boolean_t ignore_content_type, apr_file_t *outfile, apr_file_t *errfile, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_diff_peg (const apr_array_header_t *diff_options, const char *path, const svn_opt_revision_t *peg_revision, const svn_opt_revision_t *start_revision, const svn_opt_revision_t *end_revision, svn_boolean_t recurse, svn_boolean_t ignore_ancestry, svn_boolean_t no_diff_deleted, apr_file_t *outfile, apr_file_t *errfile, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_merge (const char *source1, const svn_opt_revision_t *revision1, const char *source2, const svn_opt_revision_t *revision2, const char *target_wcpath, svn_boolean_t recurse, svn_boolean_t ignore_ancestry, svn_boolean_t force, svn_boolean_t dry_run, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Merge changes from source1/revision1 to source2/revision2 into the working-copy path target_wcpath. | |
svn_error_t * | svn_client_merge_peg (const char *source, const svn_opt_revision_t *revision1, const svn_opt_revision_t *revision2, const svn_opt_revision_t *peg_revision, const char *target_wcpath, svn_boolean_t recurse, svn_boolean_t ignore_ancestry, svn_boolean_t force, svn_boolean_t dry_run, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_cleanup (const char *dir, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Recursively cleanup a working copy directory dir, finishing any incomplete operations, removing lockfiles, etc. | |
svn_error_t * | svn_client_relocate (const char *dir, const char *from, const char *to, svn_boolean_t recurse, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Modify a working copy directory dir, changing any repository URLs that begin with from to begin with to instead, recursing into subdirectories if recurse is true. | |
svn_error_t * | svn_client_revert (const apr_array_header_t *paths, svn_boolean_t recursive, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Restore the pristine version of a working copy paths, effectively undoing any local mods. | |
svn_error_t * | svn_client_resolved (const char *path, svn_boolean_t recursive, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Remove the 'conflicted' state on a working copy path. | |
svn_error_t * | svn_client_copy (svn_client_commit_info_t **commit_info, const char *src_path, const svn_opt_revision_t *src_revision, const char *dst_path, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Copy src_path to dst_path. | |
svn_error_t * | svn_client_move2 (svn_client_commit_info_t **commit_info, const char *src_path, const char *dst_path, svn_boolean_t force, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_move (svn_client_commit_info_t **commit_info, const char *src_path, const svn_opt_revision_t *src_revision, const char *dst_path, svn_boolean_t force, svn_client_ctx_t *ctx, apr_pool_t *pool) |
svn_error_t * | svn_client_propset2 (const char *propname, const svn_string_t *propval, const char *target, svn_boolean_t recurse, svn_boolean_t skip_checks, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_propset (const char *propname, const svn_string_t *propval, const char *target, svn_boolean_t recurse, apr_pool_t *pool) |
svn_error_t * | svn_client_revprop_set (const char *propname, const svn_string_t *propval, const char *URL, const svn_opt_revision_t *revision, svn_revnum_t *set_rev, svn_boolean_t force, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Set propname to propval on revision revision in the repository represented by URL. | |
svn_error_t * | svn_client_propget2 (apr_hash_t **props, const char *propname, const char *target, const svn_opt_revision_t *peg_revision, const svn_opt_revision_t *revision, svn_boolean_t recurse, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_propget (apr_hash_t **props, const char *propname, const char *target, const svn_opt_revision_t *revision, svn_boolean_t recurse, svn_client_ctx_t *ctx, apr_pool_t *pool) |
svn_error_t * | svn_client_revprop_get (const char *propname, svn_string_t **propval, const char *URL, const svn_opt_revision_t *revision, svn_revnum_t *set_rev, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Set *propval to the value of propname on revision revision in the repository represented by URL. | |
svn_error_t * | svn_client_proplist2 (apr_array_header_t **props, const char *target, const svn_opt_revision_t *peg_revision, const svn_opt_revision_t *revision, svn_boolean_t recurse, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_proplist (apr_array_header_t **props, const char *target, const svn_opt_revision_t *revision, svn_boolean_t recurse, svn_client_ctx_t *ctx, apr_pool_t *pool) |
svn_error_t * | svn_client_revprop_list (apr_hash_t **props, const char *URL, const svn_opt_revision_t *revision, svn_revnum_t *set_rev, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Set *props to a hash of the revision props attached to revision in the repository represented by URL. | |
svn_error_t * | svn_client_export3 (svn_revnum_t *result_rev, const char *from, const char *to, const svn_opt_revision_t *peg_revision, const svn_opt_revision_t *revision, svn_boolean_t overwrite, svn_boolean_t ignore_externals, svn_boolean_t recurse, const char *native_eol, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_export2 (svn_revnum_t *result_rev, const char *from, const char *to, svn_opt_revision_t *revision, svn_boolean_t force, const char *native_eol, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_export (svn_revnum_t *result_rev, const char *from, const char *to, svn_opt_revision_t *revision, svn_boolean_t force, svn_client_ctx_t *ctx, apr_pool_t *pool) |
svn_error_t * | svn_client_ls2 (apr_hash_t **dirents, const char *path_or_url, const svn_opt_revision_t *peg_revision, const svn_opt_revision_t *revision, svn_boolean_t recurse, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_ls (apr_hash_t **dirents, const char *path_or_url, svn_opt_revision_t *revision, svn_boolean_t recurse, svn_client_ctx_t *ctx, apr_pool_t *pool) |
svn_error_t * | svn_client_cat2 (svn_stream_t *out, const char *path_or_url, const svn_opt_revision_t *peg_revision, const svn_opt_revision_t *revision, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_cat (svn_stream_t *out, const char *path_or_url, const svn_opt_revision_t *revision, svn_client_ctx_t *ctx, apr_pool_t *pool) |
svn_error_t * | svn_client_lock (const apr_array_header_t *targets, const char *comment, svn_boolean_t steal_lock, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_unlock (const apr_array_header_t *targets, svn_boolean_t break_lock, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
svn_error_t * | svn_client_info (const char *path_or_url, const svn_opt_revision_t *peg_revision, const svn_opt_revision_t *revision, svn_info_receiver_t receiver, void *receiver_baton, svn_boolean_t recurse, svn_client_ctx_t *ctx, apr_pool_t *pool) |
| |
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. | |
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. | |
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. |
Definition in file svn_client.h.
|
Names of files that contain authentication information. These filenames are decided by libsvn_client, since this library implements all the auth-protocols; libsvn_wc does nothing but blindly store and retrieve these files from protected areas. Definition at line 436 of file svn_client.h. |
|
State flags for use with the (see the note about the namespace for that structure, which also applies to these flags). Definition at line 287 of file svn_client.h. |
|
Callback type used by svn_client_blame() to notify the caller that line line_no of the blamed file was last changed in revision by author on date, and that the contents were line. All allocations should be performed in pool. NOTE: If there is no blame information for this line, revision will be invalid and author and date will be NULL. Definition at line 367 of file svn_client.h. |
|
A client context structure, which holds client specific callbacks, batons, serves as a cache for configuration options, and other various and sundry things.
In order to avoid backwards compatibility problems clients should use |
|
Callback type used by commit-y operations to get a commit log message from the caller.
Set *log_msg to the log message for the commit, allocated in pool, or
commit_items is a read-only array of baton is provided along with the callback for use by the handler. All allocations should be performed in pool. Definition at line 350 of file svn_client.h. |
|
The callback invoked by svn_client_info(). Each invocation describes path with the information present in info. Note that any fields within info may be NULL if information is unavailable. Use pool for all temporary allocation. Definition at line 1941 of file svn_client.h. |
|
A structure which describes various system-generated metadata about a working-copy path or URL.
|
|
FALSE . |
|
Schedule a working copy path for addition to the repository. path's parent must be under revision control already, but path is not. If recursive is set, then assuming path is a directory, all of its contents will be scheduled for addition as well.
If force is not set and path is already under version control, return the error If ctx->notify_func2 is non-null, then for each added item, call ctx->notify_func2 with ctx->notify_baton2 and the path of the added item. Important: this is a *scheduling* operation. No changes will happen to the repository until a commit occurs. This scheduling can be removed with svn_client_revert. |
|
|
|
Invoke receiver with receiver_baton on each line-blame item associated with revision end of path_or_url, using start as the default source of all blame. peg_revision indicates in which revision path_or_url is valid. If peg_revision is
If start->kind or end->kind is Use pool for any temporary allocation. |
|
|
|
Output the content of file identified by path_or_url and revision to the stream out. The actual node revision selected is determined by the path as it exists in peg_revision. If peg_revision is
If path_or_url is not a local path, then if revision is of kind Use the authentication baton cached in ctx to authenticate against the repository. Perform all allocations from pool. ### TODO: Add an expansion/translation flag? |
|
svn_opt_revision_unspecified and ignore_externals always set to FALSE . |
|
Checkout a working copy of URL at revision, looked up at peg_revision, using path as the root directory of the newly checked out working copy, and authenticating with the authentication baton cached in ctx. If result_rev is not
revision must be of kind If ignore_externals is set, don't process externals definitions as part of this operation. If ctx->notify_func2 is non-null, invoke ctx->notify_func2 with ctx->notify_baton2 as the checkout progresses. If recurse is true, check out recursively. Otherwise, check out just the directory represented by URL and its immediate non-directory children, but none of its child directories (if any). If URL refers to a file rather than a directory, return the error SVN_ERR_UNSUPPORTED_FEATURE. If URL does not exist, return the error SVN_ERR_RA_ILLEGAL_URL. Use pool for any temporary allocation. |
|
Recursively cleanup a working copy directory dir, finishing any incomplete operations, removing lockfiles, etc. If ctx->cancel_func is non-null, invoke it with ctx->cancel_baton at various points during the operation. If it returns an error (typically SVN_ERR_CANCELLED), return that error immediately. |
|
svn_client_commit2 , but with keep_locks set to true and a nonrecursive argument instead of "recurse". |
|
Commit files or directories into repository, authenticating with the authentication baton cached in ctx, and using ctx->log_msg_func/ctx->log_msg_baton to obtain the log message. Set *commit_info to the results of the commit, allocated in pool.
targets is an array of
If ctx->notify_func2 is non-null, then call ctx->notify_func2 with ctx->notify_baton2 as the commit progresses, with any of the following actions: If recurse is false, subdirectories of directories in targets will be ignored. Unlock paths in the repository, unless keep_locks is true. Use pool for any temporary allocations.
If no error is returned and (*commit_info)->revision is set to |
|
Copy src_path to dst_path. src_path must be a file or directory under version control, or the URL of a versioned item in the repository. If src_path is a URL, src_revision is used to choose the revision from which to copy the src_path. dst_path must be a file or directory under version control, or a repository URL, existent or not. If dst_path is a URL, use the authentication baton in ctx and ctx->log_msg_func/ctx->log_msg_baton to immediately attempt to commit the copy action in the repository. If the commit succeeds, allocate (in pool) and populate *commit_info.
If dst_path is not a URL, then this is just a variant of ctx->log_msg_func/ctx->log_msg_baton are a callback/baton combo that this function can use to query for a commit log message when one is needed. If ctx->notify_func2 is non-null, invoke it with ctx->notify_baton2 for each item added at the new location, passing the new, relative path of the added item. |
|
Initialize a client context. Set *ctx to a client context object, allocated in pool, that represents a particular instance of an svn client.
In order to avoid backwards compatibility problems, clients must use this function to intialize and allocate the The current implementation never returns error, but callers should still check for error, for compatibility with future versions. |
|
Delete items from a repository or working copy. If the paths in paths are URLs, use the authentication baton in ctx and ctx->log_msg_func/ctx->log_msg_baton to immediately attempt to commit a deletion of the URLs from the repository. If the commit succeeds, allocate (in pool) and populate *commit_info. Every path must belong to the same repository.
Else, schedule the working copy paths in paths for removal from the repository. Each path's parent must be under revision control. This is just a *scheduling* operation. No changes will happen to the repository until a commit occurs. This scheduling can be removed with ctx->log_msg_func/ctx->log_msg_baton are a callback/baton combo that this function can use to query for a commit log message when one is needed. If ctx->notify_func2 is non-null, then for each item deleted, call ctx->notify_func2 with ctx->notify_baton2 and the path of the deleted item. |
|
FALSE . |
|
Produce diff output which describes the delta between path1/revision1 and path2/revision2. Print the output of the diff to outfile, and any errors to errfile. path1 and path2 can be either working-copy paths or URLs.
If either revision1 or revision2 has an `unspecified' or unrecognized `kind', return path1 and path2 must both represent the same node kind -- that is, if path1 is a directory, path2 must also be, and if path1 is a file, path2 must also be. (Currently, path1 and path2 must be the exact same path) If recurse is true (and the paths are directories) this will be a recursive operation.
Use ignore_ancestry to control whether or not items being diffed will be checked for relatedness first. Unrelated items are typically transmitted to the editor as a deletion of one thing and the addition of another, but if this flag is If no_diff_deleted is true, then no diff output will be generated on deleted files. Diff output will not be generated for binary files, unless ignore_content_type is true, in which case diffs will be shown regardless of the content types.
diff_options (an array of The authentication baton cached in ctx is used to communicate with the repository. |
|
FALSE . |
|
Produce diff output which describes the delta between the filesystem object path in peg revision peg_revision, as it changed between start_revision and end_revision. path can be either a working-copy path or URL.
All other options are handled identically to |
|
NULL . |
|
svn_opt_revision_unspecified , overwrite set to the value of force, ignore_externals always false, and recurse always true. |
|
Export the contents of either a subversion repository or a subversion working copy into a 'clean' directory (meaning a directory with no administrative directories). If result_rev is not from is either the path the working copy on disk, or a URL to the repository you wish to export. to is the path to the directory where you wish to create the exported tree. peg_revision is the revision where the path is first looked up when exporting from a repository. revision is the revision that should be exported, which is only used when exporting from a repository. ctx->notify_func2 and ctx->notify_baton2 are the notification functions and baton which are passed to svn_client_checkout() when exporting from a repository. ctx is a context used for authentication in the repository case. overwrite if true will cause the export to overwrite files or directories. If ignore_externals is set, don't process externals definitions as part of this operation. native_eol allows you to override the standard eol marker on the platform you are running on. Can be either "LF", "CR" or "CRLF" or NULL. If NULL will use the standard eol marker. Any other value will cause the SVN_ERR_IO_UNKNOWN_EOL error to be returned. If recurse is TRUE, export recursively. Otherwise, export just the directory represented by from and its immediate non-directory children, but none of its child directories (if any). Also, if recurse is FALSE, the export will behave as if ignore_externals is TRUE. All allocations are done in pool. |
|
Create and return *provider, an authentication provider of type svn_auth_cred_simple_t that gets information by prompting the user with prompt_func and prompt_baton. Allocate *provider in pool.
If both |
|
Create and return *provider, an authentication provider of type Allocate *provider in pool.
If a default username or password is available, *provider will honor them as well, and return them when |
|
Create and return *provider, an authentication provider of type *provider retrieves its credentials from the configuration mechanism. The returned credential is used to load the appropriate client certificate for authentication when requested by a server. |
|
Create and return *provider, an authentication provider of type *provider retrieves its credentials by using the prompt_func and prompt_baton. The returned credential is used to load the appropriate client certificate for authentication when requested by a server. The prompt will be retried retry_limit times. |
|
Create and return *provider, an authentication provider of type *provider retrieves its credentials from the configuration mechanism. The returned credential is used when a loaded client certificate is protected by a passphrase. |
|
Create and return *provider, an authentication provider of type *provider retrieves its credentials by using the prompt_func and prompt_baton. The returned credential is used when a loaded client certificate is protected by a passphrase. The prompt will be retried retry_limit times. |
|
Create and return *provider, an authentication provider of type *provider retrieves its credentials from the configuration mechanism. The returned credential is used to override SSL security on an error. |
|
Create and return *provider, an authentication provider of type *provider retrieves its credentials by using the prompt_func and prompt_baton. The returned credential is used to override SSL security on an error. |
|
Create and return *provider, an authentication provider of type Allocate *provider in pool.
If |
|
Create and return *provider, an authentication provider of type Allocate *provider in pool.
If a default username is available, *provider will honor it, and return it when |
|
svn_auth_cred_simple_t that gets/sets information from the user's ~/.subversion configuration directory. Allocate *provider in pool.This is like svn_client_get_simmple_provider, except that, when running on Window 2000 or newer (or any other Windows version that includes the CryptoAPI), the provider encrypts the password before storing it to disk. On earler versions of Windows, the provider does nothing.
|
|
Import file or directory path into repository directory url at head, authenticating with the authentication baton cached in ctx, and using ctx->log_msg_func/ctx->log_msg_baton to get a log message for the (implied) commit. Set *commit_info to the results of the commit, allocated in pool. If some components of url do not exist then create parent directories as necessary. If path is a directory, the contents of that directory are imported directly into the directory identified by url. Note that the directory path itself is not imported -- that is, the basename of path is not part of the import. If path is a file, then the dirname of url is the directory receiving the import. The basename of url is the filename in the repository. In this case if url already exists, return error.
If ctx->notify_func2 is non-null, then call ctx->notify_func2 with ctx->notify_baton2 as the import progresses, with any of the following actions: Use pool for any temporary allocation. ctx->log_msg_func/ctx->log_msg_baton are a callback/baton combo that this function can use to query for a commit log message when one is needed. Use nonrecursive to indicate that imported directories should not recurse into any subdirectories they may have. ### kff todo: This import is similar to cvs import, in that it does not change the source tree into a working copy. However, this behavior confuses most people, and I think eventually svn _should_ turn the tree into a working copy, or at least should offer the option. However, doing so is a bit involved, and we don't need it right now. |
|
Invoke receiver with receiver_baton to return information about path_or_url in revision. The information returned is system-generated metadata, not the sort of "property" metadata created by users. See
If both revision arguments are either
Otherwise, information will be pulled from a repository. The actual node revision selected is determined by the path_or_url as it exists in peg_revision. If peg_revision is
If path_or_url is not a local path, then if revision is of kind Use the authentication baton cached in ctx to authenticate against the repository. If recurse is true (and path_or_url is a directory) this will be a recursive operation, invoking receiver on each child. |
|
Special case for repositories at revision 0:
If start->kind is |
|
Invoke receiver with receiver_baton on each log message from start to end in turn, inclusive (but never invoke receiver on a given log message more than once).
targets contains either a URL followed by zero or more relative paths, or a list of working copy paths (as If limit is non-zero only invoke receiver on the first limit logs. If discover_changed_paths is set, then the `changed_paths' argument to receiver will be passed on each invocation. If strict_node_history is set, copy history (if any exists) will not be traversed while harvesting revision logs for each target.
If start->kind or end->kind is Use pool for any temporary allocation. IMPORTANT: A special case for the revision range HEAD:1, which was present in svn_client_log(), has been removed from svn_client_log2(). Instead. it is expected that callers will specify the range HEAD:0, to avoid a SVN_ERR_FS_NO_SUCH_REVISION error when invoked against an empty repository (i.e. one not containing a revision 1). If ctx->notify_func2 is non-null, then call ctx->notify_func2/baton2 with a 'skip' signal on any unversioned targets. |
|
|
|
Set *dirents to a newly allocated hash of entries for path_or_url at revision. The actual node revision selected is determined by the path as it exists in peg_revision. If peg_revision is
If path_or_url is a directory, return all dirents in the hash. If path_or_url is a file, return only the dirent for the file. If path_or_url is non-existent, return
The hash maps entry names ( Use authentication baton cached in ctx to authenticate against the repository. If recurse is true (and path_or_url is a directory) this will be a recursive operation. |
|
Merge changes from source1/revision1 to source2/revision2 into the working-copy path target_wcpath. source1 and source2 are either URLs that refer to entries in the repository, or paths to entries in the working copy.
By "merging", we mean: apply file differences using source1 and source2 must both represent the same node kind -- that is, if source1 is a directory, source2 must also be, and if source1 is a file, source2 must also be.
If either revision1 or revision2 has an `unspecified' or unrecognized `kind', return If recurse is true (and the URLs are directories), apply changes recursively; otherwise, only apply changes in the current directory.
Use ignore_ancestry to control whether or not items being diffed will be checked for relatedness first. Unrelated items are typically transmitted to the editor as a deletion of one thing and the addition of another, but if this flag is If force is not set and the merge involves deleting locally modified or unversioned items the operation will fail. If force is set such items will be deleted. If ctx->notify_func2 is non-null, then call ctx->notify_func2 with ctx->notify_baton2 once for each merged target, passing the target's local path. If dry_run is true the merge is carried out, and full notification feedback is provided, but the working copy is not modified. The authentication baton cached in ctx is used to communicate with the repository. |
|
Merge the changes between the filesystem object source in peg revision peg_revision, as it changed between revision1 and revision2.
All other options are handled identically to |
|
Create a directory, either in a repository or a working copy. If paths contains URLs, use the authentication baton in ctx and message to immediately attempt to commit the creation of the directories in paths in the repository. If the commit succeeds, allocate (in pool) and populate *commit_info.
Else, create the directories on disk, and attempt to schedule them for addition (using ctx->log_msg_func/ctx->log_msg_baton are a callback/baton combo that this function can use to query for a commit log message when one is needed. If ctx->notify_func2 is non-null, when the directory has been created (successfully) in the working copy, call ctx->notify_func2 with ctx->notify_baton2 and the path of the new directory. Note that this is only called for items added to the working copy. |
|
svn_client_move2 , but an extra argument src_revision must be passed. This has no effect, but must be of kind svn_opt_revision_unspecified or svn_opt_revision_head , otherwise error SVN_ERR_UNSUPPORTED_FEATURE is returned. |
|
Move src_path to dst_path. src_path must be a file or directory under version control, or the URL of a versioned item in the repository. If src_path is a repository URL:
If src_path is a working copy path:
ctx->log_msg_func/ctx->log_msg_baton are a callback/baton combo that this function can use to query for a commit log message when one is needed. If ctx->notify_func2 is non-null, then for each item moved, call ctx->notify_func2 with the ctx->notify_baton2 twice, once to indicate the deletion of the moved thing, and once to indicate the addition of the new location of the thing.
### Is this really true? What about |
|
Modify a working copy directory dir, changing any repository URLs that begin with from to begin with to instead, recursing into subdirectories if recurse is true.
|
|
Remove the 'conflicted' state on a working copy path. This will not semantically resolve conflicts; it just allows path to be committed in the future. The implementation details are opaque. If recursive is set, recurse below path, looking for conflicts to resolve. If path is not in a state of conflict to begin with, do nothing. If path's conflict state is removed and ctx->notify_func2 is non-null, call ctx->notify_func2 with ctx->notify_baton2 and path. |
|
Restore the pristine version of a working copy paths, effectively undoing any local mods. For each path in paths, if it is a directory, and recursive is true, this will be a recursive operation. If ctx->notify_func2 is non-null, then for each item reverted, call ctx->notify_func2 with ctx->notify_baton2 and the path of the reverted item.
If an item specified for reversion is not under version control, then do not error, just invoke ctx->notify_func2 with ctx->notify_baton2, using notification code |
|
FALSE , and taking a deprecated svn_wc_status_func_t argument, and requiring *revision to be non-const even though it is treated as constant. |
|
Given path to a working copy directory (or single file), call status_func/status_baton with a set of
If ignore_externals is not set, then recurse into externals definitions (if any exist) after handling the main target. This calls the client notification function (in ctx) with the |
|
Switch working tree path to url at revision, authenticating with the authentication baton cached in ctx.
If result_rev is not Summary of purpose: this is normally used to switch a working directory over to another line of development, such as a branch or a tag. Switching an existing working directory is more efficient than checking out url from scratch.
revision must be of kind If recurse is true, and path is a directory, switch it recursively; otherwise, switch just path and its immediate entries, but not its child directories (if any). If ctx->notify_func2 is non-null, invoke it with ctx->notify_baton2 on paths affected by the switch. Also invoke it for files may be restored from the text-base because they were removed from the working copy. Use pool for any temporary allocation. |
|
FALSE . |
|
Update working trees paths to revision, authenticating with the authentication baton cached in ctx. paths is an array of const char * paths to be updated. Unversioned paths that are direct children of a versioned path will cause an update that attempts to add that path, other unversioned paths are skipped. If result_revs is not
revision must be of kind
The paths in paths can be from multiple working copies from multiple repositories, but even if they all come from the same repository there is no guarantee that revision represented by If ignore_externals is set, don't process externals definitions as part of this operation. If recurse is true, update directories recursively; otherwise, update just their immediate entries, but not their child directories (if any). If ctx->notify_func2 is non-null, invoke ctx->notify_func2 with ctx->notify_baton2 for each item handled by the update, and also for files restored from text-base. If ctx->cancel_func is non-null, invoke it passing ctx->cancel_baton at various places during the update. Use pool for any temporary allocation. |
|
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. |
|
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 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 |
|
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. |
|
Get libsvn_client version information. |