On Apr 29, 2005, at 7:43 AM, Molle Bestefich wrote:
>
>> When *subversion* (i.e. the svn server libraries executed by
>> mod_dav_svn) throws an error, real error messages are marshalled to
>> the
>> client.
>
> Odd. Never seen that happen. New feature in 1.2?
>
Nope, since 1.0.
For example, if you try to commit a file that's out-of-date, the
repository generates a normal svn error, which is then marshalled back
to the client in a <D:error> tag. Here's an HTTP transcript:
CHECKOUT /svn/repos/!svn/ver/1/svn_version.h HTTP/1.1
Host: localhost
User-Agent: SVN/1.3.0 (dev build) neon/0.24.7
Connection: TE
TE: trailers
Content-Length: 184
Authorization: Basic c3Vzc21hbjpibG9ydA==
<?xml version="1.0" encoding="utf-8"?><D:checkout
xmlns:D="DAV:"><D:activity-set><D:href>/svn/repos/!svn/act/a94a57ed-
e2f5-0310-9373-a96f48576e4e</D:href></D:activity-set></D:checkout>
HTTP/1.1 409 Conflict
Date: Fri, 29 Apr 2005 13:05:23 GMT
Server: Apache/2.0.54 (Unix) SVN/1.3.0-dev DAV/2
Content-Length: 444
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8"?>
<D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns"
xmlns:C="svn:">
<C:error/>
<m:human-readable errcode="160024">
The version resource does not correspond to the resource within the
transaction. Either the requested version resource is out of date
(needs to be updated), or the requested version resource is newer than
the transaction root (restart the commit).
</m:human-readable>
</D:error>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 29 15:09:56 2005