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

Re: permissions (and other) problems

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-09-12 21:34:44 CEST

mark benedetto king wrote:

>On Thu, Sep 12, 2002 at 10:09:49AM -0400, Garrett Rooney wrote:
>
>>To provide a means for the client application to indicate that it wants
>>the library to stop whatever it was doing and clean up.
>>
>
>Yes, but then you need to check for the cancellation every so often,
>which can be painful.
>
>Also, if the application is actually blocked on a long-running operation
>(maybe the database is already wedged, for example), this approach won't
>work. Maybe BDB provides some asynchronous accessors...
>
Nope.

However, I think I we already have a perfect hook where we can check for
cancellation. It's called SVN_ERR. Just introduce a new error code,
SVN_CANCELED, and have the SVN_ERR macro check for cancellation (a
global var) and return an svn_error_t with that code,

The command-line client would create a SIGINT handler that set that var,
a GUI client would do something else.

>>I seem to remember it being removed a while back (and i'm not sure why),
>>but it does seem like there needs to be some means of providing this
>>functionality, both for the command line client and control-c, and for a
>>gui client with a dialog where you can just hit cancel.
>>
A cancellation editor is just too cumbersome, and can't be used everywhere.

>Yes, it would be nice to have a client-independent solution.
>
>
That's exactly what we'd get with my proposal.

-- 
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 Thu Sep 12 21:35:36 2002

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