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

RE: tracking number of checkouts

From: Clyde Jones <cjones_at_exelixis.com>
Date: Fri, 29 May 2009 22:15:52 -0700

----Original Message----
From: Zack Galbreath [mailto:zack.galbreath_at_gmail.com]
Sent: Thursday, May 28, 2009 7:41 AM
To: users_at_subversion.tigris.org
Subject: tracking number of checkouts

> Hi users list,
>
> Is there a way to keep track of how many times my subversion
> repository has been checked out? I'm trying to get a quantitative
> sense of how popular some open source projects are. Ideally I would
> like to capture information such as the user's IP address and what
> time they accessed the repository, if possible. I manage some
> subversion repositories that operate through the dav_svn apache2
> module, and some that use the custom svn protocol (svn://).
>
> Thanks in advance for any help you can offer me.
> -Zack
>

I don't know of a way to log checkouts as there are no checkout hooks.
With the apache,
 you can modify the apache conf and add this

  CustomLog logs/svn-action.log "%t %u %{SVN-ACTION}e" env=SVN-ACTION

You can grep the log for checkout-or-export and see the following.

[29/May/2009:21:05:09 -0700] cjones checkout-or-export /<repo>/<path>
r111111 depth=infinity

I got this from here (I think)

http://blogs.open.collab.net/svn/2009/03/subversion-with-apache-and-ldap
-updated.html

-- 
Clyde Jones
R&D Informatics
Senior Operations Developer
Exelixis Inc
This email (including any attachments) may contain material
that is confidential and privileged and is for the sole use of
the intended recipient. Any review, reliance or distribution by
others or forwarding without express permission is strictly
prohibited. If you are not the intended recipient, please
contact the sender and delete all copies.
Exelixis, Inc. reserves the right, to the extent and under
circumstances permitted by applicable law, to retain, monitor
and intercept e-mail messages to and from its systems.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2357067
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-30 07:17:13 CEST

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.