TortoiseSVN uses root account to check-in

Normally I prefer the command line tools over the tools with GUI. CLI usually means that interface is clear, simple and it could be wrapped up in the script and run automatically.

I worked with all mainstream source control systems, but Subversion is the one which still puzzles me after a year of use.  That’s why I prefer to use TortoiseSVN, which seems to me really great thing (not the Subversion itself though). It’s a pity that it exists only in Windows version.

Anyhow, I was trying to understand why when I’ve got source tree checked out under my username, TortoiseSVN checks in modifications using root account, instead of my username. Subclipse does not have this problem at all.

Then I found the answer in the TortoiseSVN FAQ:

Why is there no ‘author’ shown in the logs when I commit changes via svn+ssh?
Since SSH completely takes care of the authentication process, Subversion won’t even see the author who does the commit. So to tell Subversion an author you have to specify the author in the URL itself. E.g. svn+ssh://username@server.com. You should do that when you check out your working copy.

When I tried it, TortoiseSVN used my username. Perfect! But Subclipse went nuts. It started to think that the repostory URL is username@ssh+svn://host/repository or similar. I tried both PureJava & SVNKit implementations with no luck. Nuts!

One Response to “TortoiseSVN uses root account to check-in”

  1. Mike Lehmann says:

    You don’t have to put the user name in the URL. My SVN client (SmartSVN) asks what user to use to authenticate at the SSH server, so the author always is set correctly.

Leave a Reply