[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Re: [Subclipse-users] svn : authentication cancelled.

From: Mark Phippard <markphip_at_gmail.com>
Date: Thu, 11 Feb 2010 08:28:11 -0500

If you are using your app with Subclipse, then why are you do some of
this? You should be respecting the users preference for the client to
use. Your code is even potentially changing this. Subclipse also has
UI to ask for credentials already, so why set this?

The SVNKit client is not cached, a new object is created each time you
ask for one. Also, I thought you previously mentioned you were using
SSH. There is no way to even set credentials for SSH, as the
credentials are those for the SSH client, not SVN.

You should just be doing this:

SVNProviderPlugin.getPlugin().getSVNClient()

This gives you an ISVNClientAdapter and you can then use that to run
SVN operations.

As I suggested previously, it seems like you could even skip using SVN
directly and run other things like the GetLogsCommand class which does
this for you.

On Wed, Feb 10, 2010 at 10:21 PM, Adil F <adil.fulara_at_gmail.com> wrote:
> Mark,
>
> Could you clarify one doubt i have. We are updating our app which used subclipse 1.2.4 to 1.6.6 now.
>
> We initial subclispe with the following
>
> [code]
>  SVNProviderPlugin.getPlugin().getSVNClientManager().setSvnClientInterface("svnkit");
>        SVNProviderPlugin.getPlugin().setSvnPromptUserPassword(new SVNUserPasswordPrompt());
> [/code]
>
> and we cache the clientadapter by
>
> [code]
> SVNProviderPlugin.getPlugin().getSVNClient(); call
> [/code]
>
> So our assumption is that we will get a client [cached?] which is aware of the the username and password we set during startup.
>
> Is this something we can assume?
>
> Thank you.
>
> ------------------------------------------------------
> http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2446601
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
>

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2446684
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2010-02-11 14:28:36 CET

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.