On Thu, 2004-09-16 at 12:30, Bogdan Adrian Stănescu wrote:
> /svn/!svn/wrk/cbabed13-37e4-0310-878c-dfea4ae146b0/some_dir/some_file.txt
>
> My question is: Is this always the format of the URI apache receives
> when a "commit" action is issued? (of course I realise
> "cbabed13-37e4-0310-878c-dfea4ae146b0" is some hash generated and can
> change, but I'm interested in what file/dir has been commited)
DeltaV is a complex beast. mod_dav_svn, being a DeltaV server,
generates these weird-looking URLS to represent a whole range of DeltaV
objects:
version resources
baselines
working resources
working baselines
version controlled configuration
... and so on. Luckily, DeltaV clients treat all these URLs as opaque
blobs. A client understands that a URL may represent a "versioned
resource", but has no idea how to parse the thing... in fact, according
to the DeltaV spec, it's not even *allowed* to parse the thing. Only
mod_dav_svn is allowed to produce or consume these URLs.
That said, mod_dav_svn exports a nice public function called
dav_svn_split_uri(), declared in include/mod_dav_svn.h. Take a look.
This function asks mod_dav_svn to interpret one of its own URLs, and
explain what it represents. mod_authz_svn makes extensive use of it, so
that it can find out what reprository path a blobby URL *really*
represents.
This is exactly what you want. Look at mod_authz_svn's code (pretty
short) as your example.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 16 13:56:58 2004