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

Re: svn commit: r1033320 - in /subversion/trunk/subversion: include/svn_error_codes.h svn/cl.h svn/export-cmd.c svn/notify.c svn/switch-cmd.c svn/update-cmd.c tests/cmdline/externals_tests.py

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Wed, 10 Nov 2010 08:55:09 -0500

On 11/10/2010 05:21 AM, Julian Foad wrote:
> I'm wondering about the wrapper function approach - did you feel it's
> important to separate this error detection from the notification
> function? I wonder if it would be simpler overall to get svn's existing
> notifier code to track the presence of errors for you, instead.

I actually took this route first, only to find failure in various ways. Not
all functions use the generic notification system -- notably, *none* of them
use it if you pass --quiet. In the end , I used the paradigm employed by
"propdel" with the custom notification wrapper.

>> +/* Baton for use with svn_cl__check_externals_failed_notify_wrapper(). */
>> +struct svn_cl__check_externals_failed_notify_baton
>> +{
>> + void *wrapped_baton; /* The "real" notify_func2. */
>> + svn_wc_notify_func2_t wrapped_func; /* The "real" notify_func2 baton. */
>
> Those two are swapped relative to their comments.

Doh! Will fix.

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on 2010-11-10 14:55:50 CET

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