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

Re: Checkout hooks?

From: Kalin KOZHUHAROV <kalin_at_thinrope.net>
Date: 2006-03-24 07:18:26 CET

Ryan Schmidt wrote:
>
> On Mar 23, 2006, at 16:01, Adrian Hoe 贺文耀 wrote:
>
>> Is there any svn checkout hooks? I am interested to know who checkout
>> what at when.
>
> There is no checkout hook. However, perhaps the high-level apache access
> log will help you. It's available as of the Subversion 1.3 version of
> the apache2 module and is described here:
>
> http://subversion.tigris.org/svn_1.3_releasenotes.html#dav-logging

C00l, I missed that one :-)

However, trying to use that on a multi-repo server (with SVNParentPath),
I get only such not very meaningful entries:

on the client:
$ svn info work/scripts/ |grep ^URL
URL: https://svn.example.jp/repos/_VENDOR_/scripts
$ svn up work/scripts/
At revision 35.
$ cd /tmp && svn co https://svn.example.jp/repos/_VENDOR_
[snip]

on the server log:
[24/Mar/2006:15:02:03 +0900] Kalin.KOZHUHAROV update '/scripts'
[24/Mar/2006:15:05:02 +0900] Kalin.KOZHUHAROV checkout-or-export '/'

So how do I get the repository name in that log?
Something like:

[24/Mar/2006:15:02:03 +0900] Kalin.KOZHUHAROV update '_VENDOR_:/scripts'
[24/Mar/2006:15:05:02 +0900] Kalin.KOZHUHAROV checkout-or-export '_VENDOR_:/'

Or is it not possible?

Here is the relevant part of my config:

    LogFormat "%t %u %{SVN-ACTION}e" subversion
    CustomLog /var/apache2/XXXX/XXXXX/logs/svn_log subversion env=SVN-ACTION

    RewriteEngine on
    RewriteRule ^/repos$ /repos/ [R]

    <Location /repos/>
        DAV svn
        SSLRequireSSL
        SVNParentPath /var/apache2/XXXX/XXXXX/svn/repos
        SVNListParentPath on
        AuthzSVNAccessFile /var/apache2/XXXX/XXXXX/svn/conf/svn_access
        Require valid-user

        AuthType Basic
        AuthName "XXXX subversion repository"
        AuthUserFile /var/apache2/XXXX/XXXXX/svn/conf/svn_passwd
    </Location>

Kalin.

-- 
|[ ~~~~~~~~~~~~~~~~~~~~~~ ]|
+-> http://ThinRope.net/ <-+
|[ ______________________ ]|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 24 07:18:17 2006

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.