user602464
user602464

Reputation: 243

SVN: User Checkout History?

Is it possible to get the SVN history of a user? I have a repo and created new accounts for new developers joining the team. A few days have gone past with no status updates from them and what appears to be no work completed. I am trying to figure out if they ever access SVN and checked out the latest code. Can I do that?

UPDATE: I mean checkout, I am looking for an access log type thing based on users. I want to be able to look up user1 and see when they checked out the project and when they updated. I don't care what code they changed, I just want to see when they last accessed the code.

Upvotes: 10

Views: 12716

Answers (3)

Edit: I just want to add that adding a SVN server-side hook is not an option, because there is no "checkout" hook. Also see this SO question: Is there a Subversion Checkout Hook or something similar?

Upvotes: 0

thekbb
thekbb

Reputation: 7924

Depending on how your server is configured and what access you have you should have visibility. If you're running svn over apache (http or https), you'll want to look at apache's log. It will list if they've checked out or even browsed the code (web browser or tortoise` repo browser) by default going to be in /var/log/httpd

The logging including the location is configurable in your subversion.conf Once you find the logs you're likely going to want to setup a customlog directive to change the format something like

LogFormat "%{%Y-%m-%d %T}t %u@%h %>s repo:%{SVN-REPOS-NAME}e %{SVN-ACTION}e (%B Bytes in %T Sec)" svn

That will make it much more readable, and easier to find entries created due to your new people.

teh red book has some good info on it.

Upvotes: 6

Ernest Friedman-Hill
Ernest Friedman-Hill

Reputation: 81674

You can use SVNStat to generate various reports, including checkins by user.

Upvotes: -1

Related Questions