On Tue, Sep 22, 2009 at 17:12, Stefan Sperling <stsp_at_elego.de> wrote:
>...
> +++ trunk/subversion/libsvn_wc/adm_ops.c     Tue Sep 22 14:12:33 2009     (r39529)
> @@ -1086,11 +1086,16 @@ erase_from_wc(svn_wc__db_t *db,
>
> Â Â Â /* Now handle any remaining unversioned items */
> Â Â Â err = svn_io_get_dirents2(&unversioned, local_abspath, scratch_pool);
> -
> - Â Â Â if (err && APR_STATUS_IS_ENOTDIR(err->apr_err))
> + Â Â Â if (err)
> Â Â Â Â {
> - Â Â Â Â Â svn_error_clear(err);
> - Â Â Â Â Â return SVN_NO_ERROR;
> + Â Â Â Â Â if (APR_STATUS_IS_ENOTDIR(err->apr_err) ||
> + Â Â Â Â Â Â Â APR_STATUS_IS_ENOENT(err->apr_err))
> + Â Â Â Â Â Â {
> + Â Â Â Â Â Â Â svn_error_clear(err);
> + Â Â Â Â Â Â Â return SVN_NO_ERROR;
> + Â Â Â Â Â Â }
> + Â Â Â Â Â else
> + Â Â Â Â Â Â SVN_ERR(err);
> Â Â Â Â }
No need for the "else" since the true-block returns. Also the
SVN_ERR() test isn't needed -- you *know* there is an error.
return svn_error_return(err);
simple...
Cheers,
-g
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2398654
Received on 2009-09-22 23:40:29 CEST