Hi All,
Attached is a patch that adds "--xml" support for "svn diff
--summarize". This patch includes the actual work adding this
feature, unit tests and the Relax-NG schema file for the output. Here
is an example of the usage:
$ svn diff --summarize --xml -r27285:HEAD
<?xml version="1.0"?>
<diff>
<paths>
<path
props="none"
kind="file"
item="modified">subversion/libsvn_client/merge.c</path>
<path
props="none"
kind="file"
item="modified">subversion/tests/cmdline/update_tests.py</path>
<path
props="none"
kind="file"
item="modified">subversion/po/zh_CN.po</path>
<path
props="none"
kind="file"
item="modified">contrib/client-side/svn-merge-vendor.py</path>
</paths>
</diff>
As expected, below is the commit log for the suggested patch.
Take care,
Jeremy
[[[
Add "--xml" support to "svn diff --summarize". (Issue 2967)
* subversion/tests/cmdline/diff_tests.py
(diff_summarize_xml): Created unit test to test "--xml" flag functionality.
(test_list): Added diff_summarize_xml to the list of tests to run for diff.
* subversion/tests/cmdline/svntest/actions.py
(run_and_verify_diff_summarize_xml): Added a convenience function
for testing the new "--xml" flag funtionality.
* subversion/svn/diff-cmd.c
(kind_to_char): Refactored text_mod_char to kind_to_char for readability.
Translates a svn_client_diff_summarize_kind_t into a char representation.
(kind_to_word): Translates a svn_client_diff_summarize_kind_t to a word
representation.
(summarize_func_xml): New function for outputting the "diff --summarize"
in XML format.
(summarize_func): Updated to use kind_to_char instead of text_mod_char.
(svn_cl__diff): Added logic to handle the "--xml" flag.
* subversion/svn/schema/diff.rnc
(added to version control): This is the Relax-NG schema for the XML output.
* subversion/svn/main.c
(svn_cl__cmd_table): Updated to have the diff command support the
passing of the "--xml" flag.
]]]
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Oct 19 23:40:31 2007