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

Re: What C structure contains the HTTP Headers

From: Loren Cahlander <loren.cahlander_at_gmail.com>
Date: Thu, 12 Aug 2010 15:29:54 -0500

After discussing things with Mike, I an going to be making the changes through the HTTP PROPPATCH method.

Thank you Mike and Hyrum for you help and patience.

Loren

On Aug 12, 2010, at 12:33 PM, C. Michael Pilato wrote:

> 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 <cmpilato_at_collab.net>
> CollabNet <> www.collab.net <> Distributed Development On Demand
>
Received on 2010-08-12 22:30:35 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.