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.
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.
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.
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.
The already suggested svn auth worked for me, but to have the "ultimate" confirmation, you can use a file that you modified and run
svn info MODIFIED/FILE
or
svn log MODIFIED/FILE
and see Last Changed Author: XXXX, or the history of the changes that lists also the user names.