You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Adrian Hoe 贺文耀 <ma...@adrianhoe.com> on 2006/03/23 15:01:05 UTC

Checkout hooks?

Hi,

Is there any svn checkout hooks? I am interested to know who checkout  
what at when.
--
"If you missed the rising sun and the morning dew, don't miss the  
beautiful sunset." -- Adrian Hoe inspired by Michal Nowak, June 15 2004
http://adrianhoe.com



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Checkout hooks?

Posted by Adrian Hoe 贺文耀 <ma...@adrianhoe.com>.
On Mar 24, 2006, at 12:34 AM, 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


Sorry for being vague. I want to be alerted by emails when someone  
checkout something. Going through a log on apache is not so  
convenient and take quite some time to do so,

Like post commit hooks, I can set who to be alerted on which repository.

I went through svn manual, faq and website again and found nothing. I  
believe it is not difficult to develop a checkout hook since there is  
a post commit hook there.

Does anyone find this useful when administering/monitoring svn?
--
"If you missed the rising sun and the morning dew, don't miss the  
beautiful sunset." -- Adrian Hoe inspired by Michal Nowak, June 15 2004
http://adrianhoe.com



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Checkout hooks?

Posted by Kalin KOZHUHAROV <ka...@thinrope.net>.
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


Re: Checkout hooks?

Posted by Ryan Schmidt <su...@ryandesign.com>.
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



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org