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

Re: Subversion/mod_dav_svn questions

From: Matt Pounsett <matt_at_conundrum.com>
Date: Mon, 11 Feb 2008 19:32:38 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2008-Feb-11, at 19:24, Ryan Schmidt wrote:

>> However, my configuration is with an overall <Location>, using
>> SVNParentPath. And, the above CustomLog spec results in the log
>> messages looking somewhat like:

[...]

>> Now, I could infer from the revision number what repository this is
>> in, but that's the only way. There are at least 3 repositories being
>> logged to this file by mod_dav_svn, but the repository name isn't
>> being
>> logged. Is that available somewhere?
>
> It's too bad the repo name doesn't seem to be available as a
> separate variable anywhere. I had to parse it out of the URL.

Assuming your <Location> blocks look something like this:

     <Location /myrepo>
         DAV svn
         SVNPath /var/svn/repos/myrepo
     </Location>

Could you do this?

     <Location /myrepo>
         DAV svn
         SVNPath /var/svn/repos/myrepo
        SetEnv SVN-REPO myrepo
     </Location>

And then reference 'SVN-REPO' in your custom log entry?

I have no idea if that would work or not.. but it might be worth a try.

Matt

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)

iD8DBQFHsOkvmFeRJ0tjIxERAp5uAJ99jw9IIBo2nEXTRZUHbH0/c8hy8gCdEMmr
B4deO7srMp/fWw0tA9netWg=
=sn3o
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-12 01:33:21 CET

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

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