diff options
| author | Peter Wemm <peter@FreeBSD.org> | 2015-10-12 08:54:49 +0000 | 
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 2015-10-12 08:54:49 +0000 | 
| commit | dc5d469d6574e9fb03bdd793658bb371315b306a (patch) | |
| tree | 013c2e6845398e5a9ca4901dcc077769c7520e1d /subversion/svn/changelist-cmd.c | |
| parent | 58218291fa73a17020ef0447398e9e8a78f9e8c7 (diff) | |
Diffstat (limited to 'subversion/svn/changelist-cmd.c')
| -rw-r--r-- | subversion/svn/changelist-cmd.c | 24 | 
1 files changed, 3 insertions, 21 deletions
| diff --git a/subversion/svn/changelist-cmd.c b/subversion/svn/changelist-cmd.c index 46347b65b0f3..27de62b11f65 100644 --- a/subversion/svn/changelist-cmd.c +++ b/subversion/svn/changelist-cmd.c @@ -72,25 +72,7 @@ svn_cl__changelist(apr_getopt_t *os,    SVN_ERR(svn_cl__check_targets_are_local_paths(targets));    if (opt_state->quiet) -    /* FIXME: This is required because svn_client_create_context() -       always initializes ctx->notify_func2 to a wrapper function -       which calls ctx->notify_func() if it isn't NULL.  In other -       words, typically, ctx->notify_func2 is never NULL.  This isn't -       usually a problem, but the changelist logic generates -       svn_error_t's as part of its notification. - -       So, svn_wc_set_changelist() checks its notify_func (our -       ctx->notify_func2) for NULL-ness, and seeing non-NULL-ness, -       generates a notificaton object and svn_error_t to describe some -       problem.  It passes that off to its notify_func (our -       ctx->notify_func2) which drops the notification on the floor -       (because it wraps a NULL ctx->notify_func).  But svn_error_t's -       dropped on the floor cause SEGFAULTs at pool cleanup time -- -       they need instead to be cleared. - -       SOOOooo... we set our ctx->notify_func2 to NULL so the WC code -       doesn't even generate the errors.  */ -    ctx->notify_func2 = NULL; +    ctx->notify_func2 = NULL; /* Easy out: avoid unneeded work */    if (depth == svn_depth_unknown)      depth = svn_depth_empty; @@ -106,7 +88,7 @@ svn_cl__changelist(apr_getopt_t *os,                 errors, opt_state->quiet,                 SVN_ERR_UNVERSIONED_RESOURCE,                 SVN_ERR_WC_PATH_NOT_FOUND, -               SVN_NO_ERROR)); +               0));      }    else      { @@ -117,7 +99,7 @@ svn_cl__changelist(apr_getopt_t *os,                 errors, opt_state->quiet,                 SVN_ERR_UNVERSIONED_RESOURCE,                 SVN_ERR_WC_PATH_NOT_FOUND, -               SVN_NO_ERROR)); +               0));      }    if (errors->nelts > 0) | 
