[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Issue #443: post-commit hook script (error) output lost

From: Madan US <madan_at_collab.net>
Date: 2005-05-10 01:56:55 CEST

[[[
   Fixed Issue #443: post-commit hook script (error) output lost

   * subversion/include/svn_types.h
     (svn_commit_callback_t): Added new parameter to hold
     post-commit hook's stderr

   * subversion/include/svn_client.h
     (svn_client_commit_info_t): Added new parameter to hold
     post-commit hook's stderr

   * subversion/libsvn_ra_local/ra_plugin.c
     (deltify_etc): Added new parameter and used it in callback

   * subversion/libsvn_client/client.h
     (svn_client__commit_callback): Added new parameter to
     function declaration

   * subversion/libsvn_client/commit_util.c
     (svn_client__commit_callback): Added new parameter to hold
     post-commit hook's stderr and filled client provided
     variable with this value

   * subversion/mod_dav_svn/merge.c
     (svn_xml.h): Included header file
     (dav_svn__merge_response): Added new parameter to hold
     post-commit hook's stderr and used the same to create
     svn:post-commit-err XML tag

   * subversion/mod_dav_svn/dav_svn.h
     (dav_svn__merge_response): Added new parameter to hold
     post-commit hook's stderr

   * subversion/clients/cmdline/util.c
     (svn_cl__print_commit_info): Modified to print post-commit
     hook's stderr if available

   * subversion/tests/clients/cmdline/commit_tests.py
     (post_commit_hook_test): Added new test
     (test_list): Added new test entry

   * subversion/libsvn_repos/hooks.c
     (svn_repos__hooks_post_commit): Modified to enable run_hook_cmd
     to return the stderr of the hook being run

   * subversion/libsvn_repos/commit.c
     (close_edit): Modified to extract the post-commit hook stderr
     output and pass it on during callback

   * subversion/libsvn_ra_svn/client.c
     (ra_svn_end_commit): Modified svn_ra_svn_read_tuple call to
     read the extra parameter - post-commit hook's stderr

   * subversion/libsvn_ra_dav/merge.c
     (merge_elements): Added new element properties
     (merge_ctx_t): Added new member for post-commit stderr
     (validate_element): Changed to consider ELEM_post_commit_err as
     a valid element
     (end_element): Modified to read the svn:post-commit-err
     element's value
     (svn_ra_dav__merge_activity): Modified to read the
     post-commit-err value once we get the merge-response

   * subversion/libsvn_ra_dav/ra_dav.h
     (enum): Added ELEM_post_commit_err to enumeration
     (svn_ra_dav__merge_activity): Added new parameter to hold the
     post-commit stderr

   * subversion/libsvn_ra_dav/commit.c
     (commit_close_edit): Passed an extra o/p parameter to
     svn_ra_dav__merge_activity for obtaining the post-commit
     hook's stderr and pass it on to the callback

   * subversion/svnserve/serve.c
     (commit_callback_baton_t): Added new member to hold
     post-commit hook's stderr
     (commit_done): Added new parameter to hold post-commit hook's
     stderr and filled client provided variable with this value
     (commit): Modified to obtain the post-commit stderr and to
     format and write back to the client
]]]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Tue May 10 01:58:37 2005

This is an archived mail posted to the Subversion Dev mailing list.