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

ra_dav Protocol for the trace_old_file_location Function

From: Shlomi Fish <shlomif_at_iglu.org.il>
Date: 2004-04-08 12:47:38 CEST

Hi!

The purpose of this E-mail is to suggest a protocol for the
trace_old_file_location function over WebDAV/DeltaV (to be implemented as a
client in libsvn_ra_dav and as a server in mod_dav_svn). The function will
use a REPORT request, with the following customized XML Body:

Wrapping XML Tag is <S:trace-old-node-location>.[1] It contains the tags:

1. <D:source>. This contains a <D:href> that contains the URL that needs to be
traced.

2. <S:peg-revision>. This contains the peg revision.

3. <S:past-revision>. This contains the past revision.

For example, a request to trace the old location at revision 5 of URL
http://localhost/svn/repos/myfile.txt at revision 28 will look like this:

<<<
<S:trace-old-node-url xmlns:S=\"[SVN_XML_NAMESPACE]" xmlns:D="DAV:">
<D:source><D:href>http://localhost/svn/repos/myfile.txt</D:href></D:source>
<S:peg-revision>28</S:peg-revision>
<S:past-revision>5/S:past-revision>
</S:trace-old-node-url>
>>>

In return we will get upon successful completion of operation the following
response:

<<<
<S:trace-old-node-url-report xmlns...>
<S:past-url><D:href>http://localhost/svn/repos/my-old-file.txt</D:href></S:past-url>
</S:trace-old-node-url-report>
>>>

Or a DAV error if the operation was not successful.

Regards,

        Shlomi Fish

[1] - "S:" is the subversion namespace. "D:" is the WebDAV/DeltaV namespace.

---------------------------------------------------------------------
Shlomi Fish shlomif@iglu.org.il
Homepage: http://shlomif.il.eu.org/

Quidquid latine dictum sit, altum viditur.
        [Whatever is said in Latin sounds profound.]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 8 12:42:24 2004

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.