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

Re: Cancellable auth prompts

From: Greg Stein <gstein_at_lyra.org>
Date: 2003-06-08 00:23:57 CEST

On Fri, Jun 06, 2003 at 03:35:13PM -0500, Ben Collins-Sussman wrote:
> "Tor Hovland" <tor@nidaros.homedns.org> writes:
>
> > So now I'm stuck. I'm thinking that others must have been wondering about
> > this before, and the Subversion API suffers because of lacking cancellation
> > support in Neon. Or am I missing something?
>
> You are correct; the svn authentication API has no way of noticing a
> cancellation event.
>
> But is it necssary to be able to cancel immediately within an
> auth-prompt?

As Brane said: yes, this makes great sense.

> Your svn_client_ctx *does* have a cancellation callback/ctx that
> you've defined. If the user hits 'cancel' on your auth-prompt dialog
> box, you can set a flag in your cancellation-ctx and return an empty
> string to the auth system. When actual work is about to begin (some
> svn_client_*() routine), your cancellation callback will be called,
> which will exit at that point. I think... am I wrong about that?

eeewwww... Don't make me hurt you, man.

"Hey, let's just set this global over *there*, so when (if) I get called
 back over *here*, then I can cancel the operation. yah yah!"

Not.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jun 8 00:20:42 2003

This is an archived mail posted to the Subversion Dev mailing list.

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