tags:

views:

251

answers:

2

How to get current user that is using svn on particular workstation?

can I use svn.exe executable with some switch to get that info.

Thanks.

+2  A: 

There's no such thing as the "current user that is using svn." Every time an SVN command is submitted, credentials are supplied either explicitly at the command prompt or implicitly through saved credentials, which could include multiple users.

Michael Hackner
A: 

If you are using SVN+SSH, then, the username of the user for a given workstation is in the config file for SVN. Assuming Windows workstation, this file will be in C:\Documents and Settings\\Application Data\Subversion folder. You can then write a script to get this name, and do what ever you need it for.

I think this is only for SVN+SSH setup. It cant work in other connectivity setups for SVN.

omermuhammed
Thanks, the only file I have found is this one:1d711cc713195841ccd6ab5d28737ce9 inC:\Documents and Settings\irfan\Application Data\Subversion\auth\svn.simple\... It is different for every installation but it can be done...
Irfan Mulic