0

I can connect to my subversion server fine with Subclipse, but my commit is not working, and I'd like to add in some custom commands to make it work (I need to pass a un/pw). How can I set these parameters?

Right now the command it's setting is just commit -m "" I'd like it to be

commit -m --username <un> --password <pw>

Thanks.

kevingreen
  • 1,541
  • 2
  • 18
  • 40

1 Answers1

1

Subversion will prompt you for username/password unless it has cached valid credentials. If you do not want to use those credentials, then you need to clear Subversion's cache. If using JavaHL, that means deleting the ~/.subversion/auth folder. On Windows, that is %APPDATA%\Subversion\auth

SVNKit caches credentials in the Eclipse keyring file.

Mark Phippard
  • 10,329
  • 2
  • 32
  • 42
  • It seems I'm not getting prompted for credentials to view the SVN contents, only to commit. Anyway I can force it to send credentials ? – kevingreen May 22 '12 at 17:19
  • 1
    It is not possible to force a SVN client to send credentials. The SVN server challenges for credentials and only then does the client send them. Change your server to not allow anonymous access and you will be challenged. See the note near the end of these docs: http://svnbook.red-bean.com/en/1.7/svn.serverconfig.netmodel.html#svn.serverconfig.netmodel.creds – Mark Phippard May 22 '12 at 20:28