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

Re: 'access' field in conflict description (is it dead yet?)

From: Daniel Rall <dlr_at_collab.net>
Date: 2007-11-21 18:25:37 CET

On Wed, 21 Nov 2007, Stephen Butler wrote:

> Hi folks,
>
> In svn_wc_conflict_description_t there is a member named 'access', a
> pointer to svn_wc_adm_access_t. It seems out of place in a struct of
> pointers to const. (subversion/libsvn_wc/svn_wc.h, line 1094)
>
> A full text search of the Subversion source shows that this field is
> "write-only": found only on the left side of assignments (e.g., in the
> interactive conflict resolution callbacks) and never passed as an
> argument.
>
> Must it remain for binary compatibility, or should I submit a patch to
> get rid of the dead code?

Steve, because svn_wc_conflict_description_t is new for 1.5, we're
free to change it up until the final release without concerning
ourselves with compat (though, we can impact third-party early
adopters like TortoiseSVN and Subclipse).

Before talking about removing it, we need to understand why Ben added
it in the first place. My guess is that it's so that external library
consumers can acquire the write-lock for the conflicted area of the WC
-- which has already been write-locked by a merge/update/switch
process -- in their conflict resolution callbacks. If I'm correct, we
probably shouldn't remove it (but might want to better-document it).

- Dan

  • application/pgp-signature attachment: stored
Received on Wed Nov 21 18:25:53 2007

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.