You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Greg Stein <gs...@gmail.com> on 2010/04/14 16:02:41 UTC

Re: svn commit: r933985 - in /subversion/trunk/subversion/libsvn_wc: questions.c wc.h

On Wed, Apr 14, 2010 at 11:19,  <ju...@apache.org> wrote:
>...
> +++ subversion/trunk/subversion/libsvn_wc/questions.c Wed Apr 14 15:19:13 2010
> @@ -85,6 +85,11 @@
>  * if verify_checksum is TRUE. If checksum does not match, return the error
>  * SVN_ERR_WC_CORRUPT_TEXT_BASE.
>  *
> + * If COMPARE_TEXTBASES is true, translate VERSIONED_FILE_ABSPATH to
> + * repository-normal form and compare the result with PRISTINE_STREAM; if
> + * false, translate PRISTINE_STREAM to working-copy form and compare the
> + * result with VERSIONED_FILE_ABSPATH.

This sounds like it is doing exactly the same thing, just in different
directions.

Unless you realize that line endings are *repaired* on the
detranslate. Thus, it is comparing contents based on a
repo-normal/repaired basis, OR it is comparing an expanded pristine
against a potentially-line-ending-inconsistent working file.

>...
> +++ subversion/trunk/subversion/libsvn_wc/wc.h Wed Apr 14 15:19:13 2010
> @@ -488,7 +488,13 @@ svn_wc__internal_conflicted_p(svn_boolea
>
>
>  /* Similar to svn_wc__versioned_file_modcheck(), but with a wc_db parameter
> - * instead of a wc_context. */
> + * instead of a wc_context.
> + *
> + * If COMPARE_TEXTBASES is true, translate VERSIONED_FILE_ABSPATH to
> + * repository-normal form and compare the result with BASE_FILE_ABSPATH; if
> + * false, translate BASE_FILE_ABSPATH to working-copy form and compare the
> + * result with VERSIONED_FILE_ABSPATH.

Likewise, of course.

Cheers,
-g

Re: svn commit: r933985 - in /subversion/trunk/subversion/libsvn_wc: questions.c wc.h

Posted by Julian Foad <ju...@wandisco.com>.
On Wed, 2010-04-14 at 12:02 -0400, Greg Stein wrote:
> On Wed, Apr 14, 2010 at 11:19,  <ju...@apache.org> wrote:
> >...
> > +++ subversion/trunk/subversion/libsvn_wc/questions.c Wed Apr 14 15:19:13 2010
> > @@ -85,6 +85,11 @@
> >  * if verify_checksum is TRUE. If checksum does not match, return the error
> >  * SVN_ERR_WC_CORRUPT_TEXT_BASE.
> >  *
> > + * If COMPARE_TEXTBASES is true, translate VERSIONED_FILE_ABSPATH to
> > + * repository-normal form and compare the result with PRISTINE_STREAM; if
> > + * false, translate PRISTINE_STREAM to working-copy form and compare the
> > + * result with VERSIONED_FILE_ABSPATH.
> 
> This sounds like it is doing exactly the same thing, just in different
> directions.
> 
> Unless you realize that line endings are *repaired* on the
> detranslate. Thus, it is comparing contents based on a
> repo-normal/repaired basis, OR it is comparing an expanded pristine
> against a potentially-line-ending-inconsistent working file.

Ah yes.  (Potentially line-ending-inconsitent and/or
keyword-values-tinkered-with-or-out-of-date, I presume.)

Docs clarified in r934370.

Thanks.
- Julian


> >...
> > +++ subversion/trunk/subversion/libsvn_wc/wc.h Wed Apr 14 15:19:13 2010
> > @@ -488,7 +488,13 @@ svn_wc__internal_conflicted_p(svn_boolea
> >
> >
> >  /* Similar to svn_wc__versioned_file_modcheck(), but with a wc_db parameter
> > - * instead of a wc_context. */
> > + * instead of a wc_context.
> > + *
> > + * If COMPARE_TEXTBASES is true, translate VERSIONED_FILE_ABSPATH to
> > + * repository-normal form and compare the result with BASE_FILE_ABSPATH; if
> > + * false, translate BASE_FILE_ABSPATH to working-copy form and compare the
> > + * result with VERSIONED_FILE_ABSPATH.
> 
> Likewise, of course.
> 
> Cheers,
> -g