You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Geoffrey Devantier <Ge...@derivco.com> on 2007/05/24 08:08:33 UTC

User info

Hi

I have a little utility that is intended to be run from the root of a
svn working folder. This utility automates some actions by issuing svn
cmds via a command shell. While it is possible to use these commands
natively in the context of the current user, I would like to retrieve
the user login name in order to keep track of who is doing what. Does
anyone have any idea as to how I can get this info?

Thanks
Geoff
#############################################################################################
The information transmitted is intended only for the person or entity to which it 
is addressed and may contain confidential and/or privileged material. 
Any review, retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than the intended 
recipient is prohibited. If you received this in error, please contact the sender and
delete the material from any computer.

Furthermore, the information contained in this message, and any attachments thereto, is
for information purposes only and may contain the personal views and opinions of the 
author, which are not necessarily the views and opinions of the company.
#############################################################################################

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: User info

Posted by marc gonzalez-carnicer <ca...@gmail.com>.
if i understood you correctly, and assuming you are working
under linux, the 'id' command may be of help to you. if its
default output format does not suit you, you can pass some
options or use 'cut'.


2007/5/24, Geoffrey Devantier <Ge...@derivco.com>:
> Hi
>
> I have a little utility that is intended to be run from the root of a
> svn working folder. This utility automates some actions by issuing svn
> cmds via a command shell. While it is possible to use these commands
> natively in the context of the current user, I would like to retrieve
> the user login name in order to keep track of who is doing what. Does
> anyone have any idea as to how I can get this info?
>
> Thanks
> Geoff
> #############################################################################################
> The information transmitted is intended only for the person or entity to which it
> is addressed and may contain confidential and/or privileged material.
> Any review, retransmission, dissemination or other use of, or taking of any action
> in reliance upon, this information by persons or entities other than the intended
> recipient is prohibited. If you received this in error, please contact the sender and
> delete the material from any computer.
>
> Furthermore, the information contained in this message, and any attachments thereto, is
> for information purposes only and may contain the personal views and opinions of the
> author, which are not necessarily the views and opinions of the company.
> #############################################################################################
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Re: User info

Posted by MikeW <mw...@yahoo.co.uk>.
Geoffrey Devantier <Geoffrey.Devantier <at> derivco.com> writes:

> 
> The SVN login name may or may not be the same as the OS user name. I
> can't make that assumption. I am working under windows by the way.
> 

Well, as per the PDF reference I gave, the svn username is definitely stored
in the file stored in dir: %APPDATA%\Subversion\auth\svn.simple
though you will have to parse it out a little.

Have a look !

MikeW

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: Re: User info

Posted by Geoffrey Devantier <Ge...@derivco.com>.
The SVN login name may or may not be the same as the OS user name. I
can't make that assumption. I am working under windows by the way.

-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of MikeW
Sent: Thursday, May 24, 2007 1:11 PM
To: users@subversion.tigris.org
Subject: Re: User info

Geoffrey Devantier <Geoffrey.Devantier <at> derivco.com> writes:

> 
> Hi
> 
> I have a little utility that is intended to be run from the root of a
> svn working folder. This utility automates some actions by issuing svn
> cmds via a command shell. While it is possible to use these commands
> natively in the context of the current user, I would like to retrieve
> the user login name in order to keep track of who is doing what. Does
> anyone have any idea as to how I can get this info?
> 
> Thanks
> Geoff
> 

Linux: $USER
Windows: $USERNAME

Or is the svn login name different from the OS login name ?

Also see svn-book.pdf section Client Credentials Caching:
>>
By default, whenever the command-line client successfully responds
to a server's authentication challenge, it saves the credentials in the
user's
private runtime configuration area (~/.subversion/auth/ on Unix-like
systems or
%APPDATA%/Subversion/auth/ on Windows
<<

Regards,
MikeW

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

#############################################################################################
The information transmitted is intended only for the person or entity to which it 
is addressed and may contain confidential and/or privileged material. 
Any review, retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than the intended 
recipient is prohibited. If you received this in error, please contact the sender and
delete the material from any computer.

Furthermore, the information contained in this message, and any attachments thereto, is
for information purposes only and may contain the personal views and opinions of the 
author, which are not necessarily the views and opinions of the company.
#############################################################################################

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: User info

Posted by MikeW <mw...@yahoo.co.uk>.
Geoffrey Devantier <Geoffrey.Devantier <at> derivco.com> writes:

> 
> Hi
> 
> I have a little utility that is intended to be run from the root of a
> svn working folder. This utility automates some actions by issuing svn
> cmds via a command shell. While it is possible to use these commands
> natively in the context of the current user, I would like to retrieve
> the user login name in order to keep track of who is doing what. Does
> anyone have any idea as to how I can get this info?
> 
> Thanks
> Geoff
> 

Linux: $USER
Windows: $USERNAME

Or is the svn login name different from the OS login name ?

Also see svn-book.pdf section Client Credentials Caching:
>>
By default, whenever the command-line client successfully responds
to a server's authentication challenge, it saves the credentials in the user's
private runtime configuration area (~/.subversion/auth/ on Unix-like systems or
%APPDATA%/Subversion/auth/ on Windows
<<

Regards,
MikeW

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org