[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: Ryan Schmidt <subversion-2008a_at_ryandesign.com>
Date: Tue, 12 Feb 2008 01:01:01 -0600

On Feb 11, 2008, at 18:32, Matt Pounsett wrote:

> 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.

If you're using SVNPath pointing to a single repo there isn't much of
a problem. But the original poster (and me too) was using
SVNParentPath and therefore multiple repositories.

---------------------------------------------------------------------
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 08:01:41 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.