tags:

views:

113

answers:

3

I am working on a collaborative project, and using Subversion on Red Hat Enterprise Linux 3. I would like to know who I am logged in as. Am I logged in as myself or someone else? If I check in my work, what username will be associated with the commit?

I am never prompted for a username or password. When I commit changes, they just get committed under someone else's name. I would like them to be committed under my name.

I tried the "--username" option as described on this page, but it didn't seem to work. I did a commit and it was done under the other user's name. I would like some way of knowing for sure that my changes will be committed under my name before I do the commit.

A: 

Usually I'm prompted when I try to commit unless I save the authentication information, which means anyone can check out the code but that's just what I've seen in my workplace when it comes to SVN.


"Re: How to change user if 'remember auth' is checked" may be of some help, though if not just provide some more details as generally I'd think others would have had this happen before and know how to deal with this.

JB King
I am not prompted. See the edits to my question for more details.
mikez302
A: 

Hmm. I'm not sure. You could always lock a file, then unlock it. When you lock, it'll tell you who you are.

However, to stop the current username from being cached (ie stored in your runtime config files/registry) then use the --no-auth-cache option.

If that fails too, then you're probably using svn over ssh, and ssh is providing a username. Fix that and you'll be able to start using your own instead.

gbjbaanb
+1  A: 

Depending on what host OS you're using, configuration information is stored in different places. See the subversion book's section on the topic.

Deleting the auth subdirectory of the config will remove any stored authentication, thus causing Subversion to ask you for more authentication. Other than that, there doesn't seem to be a way to query which user you're authenticated as.

DDaviesBrackett
I am using Red Hat Enterprise Linux 3. I will put that in the question.
mikez302
Thank you. I tried the trick on http://stackoverflow.com/questions/45624/how-do-i-change-the-default-author-for-accessing-a-local-svn-repository/265268#265268 for checking it out again under my name. Then I looked in the auth directory and it seems like everything is there under my name now. When I do my next commit, I will look at the name. If it doesn't work, I will try deleting the auth directory.
mikez302