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

Re: svn commit: r1330058 - in /subversion/trunk/subversion: include/svn_error_codes.h include/svn_fs.h libsvn_fs/editor.c libsvn_repos/commit.c

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 25 Apr 2012 13:37:25 +0100

gstein_at_apache.org writes:

> + else
> + {
> + SVN_ERR_ASSERT(err != NULL);
> + if (err->apr_err == SVN_ERR_FS_CONFLICT)
> + {
> + /* Case 2. */
> +
> + /* Copy this into the correct pool (see note above). */
> + *conflict_path = apr_pstrdup(result_pool, inner_conflict_path);
> +
> + /* Return sucess. The caller should inspect CONFLICT_PATH to
> + determine this particular case. */
> + svn_error_clear(err);
> + err = SVN_NO_ERROR;
> + }

By clearing err we limit the information about the conflict to just the
conflict path--if there is a more detailed explanation in err it is
discarded. Is that what we want? The FS layers detect all sorts of
conflicts that could be described in err, although they don't do so at
present.

I suppose that the user resolves the conflict by updating the working
copy, but that assumes that there is a working copy and that the update
will use the same revision and get the same conflict.

-- 
Philip
Received on 2012-04-25 14:38:10 CEST

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.