On 08/12/2010 12:49 PM, Loren Cahlander wrote: > I want to change the following function in subversion/mod_dav_svn/version.c > to get those two headers values and set the values for SVN_PROP_REVISION_LOG > and SVN_PROP_REVISION_AUTHOR. Is there a simple way to get the request_rec > structure from the svn_fs_txn_t or apr_pool_t structures? Another thing that > might help is where is the entry into mod_dav_svn for a HTTP PUT request?
You'll need to tweak the dav_svn__attach_auto_revprops() function's signature to accept a 'request_rec *r' parameter, and tweak the callers to provide it. As for the entry point, mod_dav_svn is actually a DAV filesystem provider that sits behind Apache's own mod_dav. In the Apache source code sits a modules/dav/main/ directory, and the source code in that directory contains functions with names of the form 'dav_method_REQUESTTYPE' where REQUESTTYPE is the HTTP request method (in lowercase). So, ${HTTPD_SRC}/modules/dav/main/mod_dav.c:dav_method_put() is the entry point into this whole stack of WebDAV-based version control. -- C. Michael Pilato <cmpil...@collab.net> CollabNet <> www.collab.net <> Distributed Development On Demand
signature.asc
Description: OpenPGP digital signature