Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clearing TortoiseSVN authentication cache from the command line

TortoiseSVN is nice for the most part, but one thing that blows in a team development situation where more than one person is using a particular PC is the authentication. When I'm working on stuff, I like to save my credentials so that I don't need to keep entering it in for logging, branching, committing, etc.

The problem is that I always forget to clear my credentials when I walk away, because:

  1. I don't want to have to re-enter it again if no one else uses the computer and purposely forget.
  2. It's a PITA to do and requires 4 too many mouse clicks to do.

Ideally, I would just have a couple of nice batch files in SVN to deal with this sort of thing, including rebuilding the icon cache (which I have working okay). I looked at the command line documentation and it doesn't mention clearing the authentication cache.

Has anyone figured out how to do it? I think it'll encourage me to clear my credentials more often. It's not the end of the world since we can always change the author after the commit, but still...

like image 355
Dave Avatar asked Apr 02 '10 18:04

Dave


People also ask

How do I clear SVN cache?

The first thing that you need to do is to find the auth folder in the subversion directory that can be found tipically in the %appdata%\Subversion\auth e.g C:\Users\<your-username>\AppData\Roaming\Subversion\auth . Finally, select the auth folder and delete it.

How do I access TortoiseSVN from command line?

Locate TortoiseSVN and click on it. Select "Change" from the options available. Refer to this image for further steps. After completion of the command line client tools, open a command prompt and type svn help to check the successful install.


1 Answers

You have to delete the files manually, like so (using .bat file):

@echo off
rmdir /s /q "%APPDATA%\Subversion\auth"

See the Authentication section of the TortoiseSVN documentation.

like image 159
DuoSRX Avatar answered Sep 17 '22 18:09

DuoSRX