[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: Branko Čibej <brane_at_xbc.nu>
Date: 2003-06-07 00:19:35 CEST

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?
>
For a GUI, this makes perfect sense from a usability standpoint.

>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?
>
>
That means you could generate network requests (that would probably
fail) before the first cancellation point was hit; so the command would
fail, not stop, like he said.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jun 7 00:18:18 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.