Subversion 1.6.16
|
Functions | |
svn_error_t * | svn_client_diff4 (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, const char *relative_to_dir, svn_depth_t depth, svn_boolean_t ignore_ancestry, svn_boolean_t no_diff_deleted, svn_boolean_t ignore_content_type, const char *header_encoding, apr_file_t *outfile, apr_file_t *errfile, const apr_array_header_t *changelists, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Produce diff output which describes the delta between path1/revision1 and path2/revision2. | |
svn_error_t * | svn_client_diff3 (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, const char *header_encoding, apr_file_t *outfile, apr_file_t *errfile, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Similar to svn_client_diff4(), but with changelists passed as NULL , and depth set according to recurse: if recurse is TRUE, set depth to svn_depth_infinity , if recurse is FALSE, set depth to svn_depth_empty . | |
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) |
Similar to svn_client_diff3(), but with header_encoding set to APR_LOCALE_CHARSET . | |
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) |
Similar to svn_client_diff2(), but with ignore_content_type always set to FALSE. | |
svn_error_t * | svn_client_diff_peg4 (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, const char *relative_to_dir, svn_depth_t depth, svn_boolean_t ignore_ancestry, svn_boolean_t no_diff_deleted, svn_boolean_t ignore_content_type, const char *header_encoding, apr_file_t *outfile, apr_file_t *errfile, const apr_array_header_t *changelists, svn_client_ctx_t *ctx, apr_pool_t *pool) |
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. | |
svn_error_t * | svn_client_diff_peg3 (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, const char *header_encoding, apr_file_t *outfile, apr_file_t *errfile, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Similar to svn_client_diff_peg4(), but with changelists passed as NULL , and depth set according to recurse: if recurse is TRUE, set depth to svn_depth_infinity , if recurse is FALSE, set depth to svn_depth_files . | |
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) |
Similar to svn_client_diff_peg3(), but with header_encoding set to APR_LOCALE_CHARSET . | |
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) |
Similar to svn_client_diff_peg2(), but with ignore_content_type always set to FALSE. | |
svn_error_t * | svn_client_diff_summarize2 (const char *path1, const svn_opt_revision_t *revision1, const char *path2, const svn_opt_revision_t *revision2, svn_depth_t depth, svn_boolean_t ignore_ancestry, const apr_array_header_t *changelists, svn_client_diff_summarize_func_t summarize_func, void *summarize_baton, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Produce a diff summary which lists the changed items between path1/revision1 and path2/revision2 without creating text deltas. | |
svn_error_t * | svn_client_diff_summarize (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_client_diff_summarize_func_t summarize_func, void *summarize_baton, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Similar to svn_client_diff_summarize2(), but with changelists passed as NULL , and depth set according to recurse: if recurse is TRUE, set depth to svn_depth_infinity , if recurse is FALSE, set depth to svn_depth_files . | |
svn_error_t * | svn_client_diff_summarize_peg2 (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_depth_t depth, svn_boolean_t ignore_ancestry, const apr_array_header_t *changelists, svn_client_diff_summarize_func_t summarize_func, void *summarize_baton, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Produce a diff summary which lists the changed items between the filesystem object path in peg revision peg_revision, as it changed between start_revision and end_revision. | |
svn_error_t * | svn_client_diff_summarize_peg (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_client_diff_summarize_func_t summarize_func, void *summarize_baton, svn_client_ctx_t *ctx, apr_pool_t *pool) |
Similar to svn_client_diff_summarize_peg2(), but with changelists passed as NULL , and depth set according to recurse: if recurse is TRUE, set depth to svn_depth_infinity , if recurse is FALSE, set depth to svn_depth_files . |
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 | ||
) |
Similar to svn_client_diff2(), but with ignore_content_type always set to FALSE.
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 | ||
) |
Similar to svn_client_diff3(), but with header_encoding set to APR_LOCALE_CHARSET
.
svn_error_t* svn_client_diff3 | ( | 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, | ||
const char * | header_encoding, | ||
apr_file_t * | outfile, | ||
apr_file_t * | errfile, | ||
svn_client_ctx_t * | ctx, | ||
apr_pool_t * | pool | ||
) |
Similar to svn_client_diff4(), but with changelists passed as NULL
, and depth set according to recurse: if recurse is TRUE, set depth to svn_depth_infinity
, if recurse is FALSE, set depth to svn_depth_empty
.
svn_error_t* svn_client_diff4 | ( | 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, | ||
const char * | relative_to_dir, | ||
svn_depth_t | depth, | ||
svn_boolean_t | ignore_ancestry, | ||
svn_boolean_t | no_diff_deleted, | ||
svn_boolean_t | ignore_content_type, | ||
const char * | header_encoding, | ||
apr_file_t * | outfile, | ||
apr_file_t * | errfile, | ||
const apr_array_header_t * | changelists, | ||
svn_client_ctx_t * | ctx, | ||
apr_pool_t * | pool | ||
) |
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 relative_to_dir is not NULL
, the original_path and modified_path will have the relative_to_dir stripped from the front of the respective paths. If relative_to_dir is NULL
, paths will not be modified. If relative_to_dir is not NULL
but relative_to_dir is not a parent path of the target, an error is returned. Finally, if relative_to_dir is a URL, an error will be returned.
If either revision1 or revision2 has an `unspecified' or unrecognized `kind', return SVN_ERR_CLIENT_BAD_REVISION
.
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.
If depth is svn_depth_infinity
, diff fully recursively. Else if it is svn_depth_immediates
, diff the named paths and their file children (if any), and diff properties of subdirectories, but do not descend further into the subdirectories. Else if svn_depth_files
, behave as if for svn_depth_immediates
except don't diff properties of subdirectories. If svn_depth_empty
, diff exactly the named paths but nothing underneath them.
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 TRUE, unrelated items will be diffed as if they were related.
If no_diff_deleted is TRUE, then no diff output will be generated on deleted files.
Generated headers are encoded using header_encoding.
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 const char *
) is used to pass additional command line options to the diff processes invoked to compare files.
The authentication baton cached in ctx is used to communicate with the repository.
changelists is an array of const char *
changelist names, used as a restrictive filter on items whose differences are reported; that is, don't generate diffs about any item unless it's a member of one of those changelists. If changelists is empty (or altogether NULL
), no changelist filtering occurs.
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 | ||
) |
Similar to svn_client_diff_peg2(), but with ignore_content_type always set to FALSE.
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 | ||
) |
Similar to svn_client_diff_peg3(), but with header_encoding set to APR_LOCALE_CHARSET
.
svn_error_t* svn_client_diff_peg3 | ( | 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, | ||
const char * | header_encoding, | ||
apr_file_t * | outfile, | ||
apr_file_t * | errfile, | ||
svn_client_ctx_t * | ctx, | ||
apr_pool_t * | pool | ||
) |
Similar to svn_client_diff_peg4(), but with changelists passed as NULL
, and depth set according to recurse: if recurse is TRUE, set depth to svn_depth_infinity
, if recurse is FALSE, set depth to svn_depth_files
.
svn_error_t* svn_client_diff_peg4 | ( | 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, | ||
const char * | relative_to_dir, | ||
svn_depth_t | depth, | ||
svn_boolean_t | ignore_ancestry, | ||
svn_boolean_t | no_diff_deleted, | ||
svn_boolean_t | ignore_content_type, | ||
const char * | header_encoding, | ||
apr_file_t * | outfile, | ||
apr_file_t * | errfile, | ||
const apr_array_header_t * | changelists, | ||
svn_client_ctx_t * | ctx, | ||
apr_pool_t * | pool | ||
) |
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.
If peg_revision is svn_opt_revision_unspecified
, behave identically to svn_client_diff4(), using path for both of that function's path1 and path2 argments.
All other options are handled identically to svn_client_diff4().
svn_error_t* svn_client_diff_summarize | ( | 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_client_diff_summarize_func_t | summarize_func, | ||
void * | summarize_baton, | ||
svn_client_ctx_t * | ctx, | ||
apr_pool_t * | pool | ||
) |
Similar to svn_client_diff_summarize2(), but with changelists passed as NULL
, and depth set according to recurse: if recurse is TRUE, set depth to svn_depth_infinity
, if recurse is FALSE, set depth to svn_depth_files
.
svn_error_t* svn_client_diff_summarize2 | ( | const char * | path1, |
const svn_opt_revision_t * | revision1, | ||
const char * | path2, | ||
const svn_opt_revision_t * | revision2, | ||
svn_depth_t | depth, | ||
svn_boolean_t | ignore_ancestry, | ||
const apr_array_header_t * | changelists, | ||
svn_client_diff_summarize_func_t | summarize_func, | ||
void * | summarize_baton, | ||
svn_client_ctx_t * | ctx, | ||
apr_pool_t * | pool | ||
) |
Produce a diff summary which lists the changed items between path1/revision1 and path2/revision2 without creating text deltas.
path1 and path2 can be either working-copy paths or URLs.
The function may report false positives if ignore_ancestry is false, since a file might have been modified between two revisions, but still have the same contents.
Calls summarize_func with summarize_baton for each difference with a svn_client_diff_summarize_t
structure describing the difference.
See svn_client_diff4() for a description of the other parameters.
svn_error_t* svn_client_diff_summarize_peg | ( | 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_client_diff_summarize_func_t | summarize_func, | ||
void * | summarize_baton, | ||
svn_client_ctx_t * | ctx, | ||
apr_pool_t * | pool | ||
) |
Similar to svn_client_diff_summarize_peg2(), but with changelists passed as NULL
, and depth set according to recurse: if recurse is TRUE, set depth to svn_depth_infinity
, if recurse is FALSE, set depth to svn_depth_files
.
svn_error_t* svn_client_diff_summarize_peg2 | ( | 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_depth_t | depth, | ||
svn_boolean_t | ignore_ancestry, | ||
const apr_array_header_t * | changelists, | ||
svn_client_diff_summarize_func_t | summarize_func, | ||
void * | summarize_baton, | ||
svn_client_ctx_t * | ctx, | ||
apr_pool_t * | pool | ||
) |
Produce a diff summary which lists the changed items 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.
If peg_revision is svn_opt_revision_unspecified
, behave identically to svn_client_diff_summarize2(), using path for both of that function's path1 and path2 argments.
The function may report false positives if ignore_ancestry is false, as described in the documentation for svn_client_diff_summarize2().
Call summarize_func with summarize_baton for each difference with a svn_client_diff_summarize_t
structure describing the difference.
See svn_client_diff_peg4() for a description of the other parameters.