[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: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-06-06 22:35:13 CEST

"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

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?

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 6 22:36:59 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.