Checkout
Branko ─îibej
committed
on 10 Sep 12
Make the extended version info retrieval a public API.

* subversion/include/svn_version.h: Include apr_tables.h.
(svn_version_extended_t)… Show more
Make the extended version info retrieval a public API.

* subversion/include/svn_version.h: Include apr_tables.h.

 (svn_version_extended_t): Move here, rename from svn_opt__version_info_t.

 (svn_version_linked_lib_t): Move here, rename from svn_sysinfo__linked_lib_t.

 (svn_version_loaded_lib_t): Move here, rename from svn_sysinfo__loaded_lib_t.

 (svn_version_extended): Move here, rename from svn_opt__get_version_info.

* subversion/libsvn_subr/version.c: Include sysinfo.h.

 (svn_version_extended): Move here, renamed and updated from

  svn_opt__get_version_info.

* subversion/libsvn_subr/sysinfo.h

 (svn_sysinfo__linked_lib_t, svn_sysinfo__loaded_lib_t): Moved and

  renamed to subversion/include/svn_version.h.

 (svn_sysinfo__linked_libs, svn_sysinfo__loaded_libs): Update docstring.

* subversion/libsvn_subr/sysinfo.c: Include svn_version.h.

 (svn_sysinfo__linked_libs, svn_sysinfo__loaded_libs):

  Update, using new type names.

* subversion/libsvn_subr/opt.h:

  Include svn_version.h. Do not include apr_tables.h.

  (svn_opt__version_info_t, svn_opt__get_version_info):

   Moved and renamed to subversion/include/svn_version.h

  (svn_opt__print_version_info): Update type name in prototype.

* subversion/libsvn_subr/opt.c: Do not include sysinfo.h.

 (svn_opt__get_version_info): Moved and renamed to

  subversion/libsvn_subr/version.c.

 (svn_opt__print_version_info, svn_opt_print_help):

  Update, use public svn_version_extended API.

* subversion/libsvn_subr/deprecated.c: Include svn_version.h.

 (svn_opt_print_help): Update, use public svn_version_extended API.

* subversion/tests/cmdline/getopt_tests.py

 (switch_res_line, switched_del_lines_res, switched_rep_lines_res):

  New filters for extended version information.

 (process_lines): Use the new filters.

 (getopt__version__verbose): New test for "svn --version --verbose".

* subversion/tests/cmdline/getopt_tests_data/svn--version--verbose_stdout,

 subversion/tests/cmdline/getopt_tests_data/svn--version--verbose_stderr: New.

Show less