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

Re: DAV props

From: Greg Stein <gstein_at_lyra.org>
Date: 2001-12-27 10:35:13 CET

On Thu, Dec 20, 2001 at 11:48:11AM -0600, Ben Collins-Sussman wrote:
>...
> I'm trying to add two new fields to the merge-response, so that it
> might look something like this:

You will need to add the props to the MERGE request itself. See line 585 in
libsvn_ra_dav/merge.c

> <D:prop>
> <D:resourcetype><D:baseline/></D:resourcetype>
> <D:version-name>1084</D:version-name>
> <D:version-date>Tue 20 Nov 2001 14:42:16</D:version-date>
> <D:version-author>sussman</D:version-author>
> </D:prop>
>
> But I'm a bit paranoid; all of these baseline props seem to be defined
> in the DAV namespace.

resourcetype and version-name are defined in the "DAV:" namespace. They are
standard DeltaV properties.

The date is DAV:creationdate (or D:creationdate depending on whether you're
talking about its real name, or the element prefix and name in an XML doc).

The author is DAV:creator-displayname

Note that mod_dav_svn/liveprops.c doesn't respond to either of the above
props, so that would need to be changed.

> And the merge-response isn't some wonky custom
> report response -- it's a repsonse to a well-defined MERGE request.
> So I can't just sit around making up new props here, can I? What
> should I be doing?

You can never make up props in the "DAV:" namespace :-)

Adjust the MERGE request to "request" the new props. Tweak the merge
response to provide them.

Note that the MERGE response code hardcodes the props that it returns. In
other words, the props listed in the request are actually ignored. *shrug*
One day in the future, we'll fix the server side. But at least the client
sends something that is "close".

Because the MERGE response has its own code for sending those props, you
(strictly) do not need to update liveprops.c. So... I'd recommend avoiding
that for now. Just change merge.c as appropriate.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:54 2006

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.