tags:

views:

89

answers:

2

Is it possible to query for all activity relating to a specific user across all repositories. Including any check out action? Thanks.

+2  A: 

I don't think that svn has built-in support for that feature, but you could write a little script to run

svn log --xml

In the directories of whatever repos you wanted to test, then parse it and pick only the entries done by a given user.

Allyn
Where do I do this, in the directory of the repo on the server? E.g. the directory which contains conf, dav, db, format, hooks, locks. If so it says svn: '.' is not a working copy
Louis W
No, you'll want to do it on a client. svn co http://url.com/svn/thing; cd thing; svn log --xml
Allyn
Then that would not show if another user checked it out? Basically I want to know who is checking out a certain repo.
Louis W
@Louis: There is no way to find out who checked out a repository. Everyone who has access to it can check it out as often as they want. All you can see is the changes that have been checked in on the repository.
sbi
Well, if you had it running via Apache, you could parse the logs and see what user names had accessed it - that would be like checking to see who had checked it out.
Allyn
+1  A: 

I second Allyn's answer, but have one addition: If you're on Windows, TortoiseSVN allows you to filter the output, including the ability to filter by user name.

sbi