Re: svn log says text-mods="true" but there are no diffs

2020-12-05 Thread Vincent Lefevre
On 2020-12-04 20:41:27 +, Daniel Shahaf wrote:
> Vincent Lefevre wrote on Fri, 04 Dec 2020 01:08 +00:00:
> > I get the following:
> > 
> > $ svn log --xml -v -r 1984 https://scm.gforge.inria.fr/anonscm/svn/mpfr
> >  >revision="1984">
> > vlefevre
> > 2002-07-23T16:22:08.00Z
> > 
> >  >prop-mods="false"
> >text-mods="true"
> >kind="file"
> >action="M">/trunk/mul.c
> > 
> > Fixed permissions.
> > 
> > 
> > 
> > 
> > I'm wondering why text-mods="true" while
> > 
> >   svn diff -c 1984 https://scm.gforge.inria.fr/anonscm/svn/mpfr
> > 
> > shows no diffs.
> 
> You may be running into this (quoting from svn_fs_contents_changed()'s 
> docstring):
> 
>  * @note svn_fs_contents_changed() was not designed to be used to detect
>  * when two files have different content, but really to detect when the
>  * contents of a given file have changed across two points in its history.
>  * For the purposes of preserving accurate history, certain bits of code
>  * (such as the repository dump code) need to care about this distinction.
>  * For example, it's not an error from the FS API point of view to call
>  * svn_fs_apply_textdelta() and explicitly set a file's contents to exactly
>  * what they were before the edit was made.  We have a pair of functions
>  * that can answer both of these questions, svn_fs_contents_changed() and
>  * svn_fs_contents_different().  See issue 4598 for more details.
> 
> Or maybe that revision was created by a pre-1.0 version of Subversion
> that had some bug or another.

That was in 2002, so at that time we were using CVS, and we converted
the repository to Subversion with cvs2svn on 2005-10-24.

But when I detected this issue, this was with a local mirror, thus
with a repository that has been rebuilt a few weeks ago on a machine
with Subversion 1.14.0.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Re: svn log says text-mods="true" but there are no diffs

2020-12-04 Thread Daniel Shahaf
Vincent Lefevre wrote on Fri, 04 Dec 2020 01:08 +00:00:
> I get the following:
> 
> $ svn log --xml -v -r 1984 https://scm.gforge.inria.fr/anonscm/svn/mpfr
> revision="1984">
> vlefevre
> 2002-07-23T16:22:08.00Z
> 
> prop-mods="false"
>text-mods="true"
>kind="file"
>action="M">/trunk/mul.c
> 
> Fixed permissions.
> 
> 
> 
> 
> I'm wondering why text-mods="true" while
> 
>   svn diff -c 1984 https://scm.gforge.inria.fr/anonscm/svn/mpfr
> 
> shows no diffs.

You may be running into this (quoting from svn_fs_contents_changed()'s 
docstring):

 * @note svn_fs_contents_changed() was not designed to be used to detect
 * when two files have different content, but really to detect when the
 * contents of a given file have changed across two points in its history.
 * For the purposes of preserving accurate history, certain bits of code
 * (such as the repository dump code) need to care about this distinction.
 * For example, it's not an error from the FS API point of view to call
 * svn_fs_apply_textdelta() and explicitly set a file's contents to exactly
 * what they were before the edit was made.  We have a pair of functions
 * that can answer both of these questions, svn_fs_contents_changed() and
 * svn_fs_contents_different().  See issue 4598 for more details.

Or maybe that revision was created by a pre-1.0 version of Subversion
that had some bug or another.


svn log says text-mods="true" but there are no diffs

2020-12-03 Thread Vincent Lefevre
I get the following:

$ svn log --xml -v -r 1984 https://scm.gforge.inria.fr/anonscm/svn/mpfr

vlefevre
2002-07-23T16:22:08.00Z

/trunk/mul.c

Fixed permissions.




I'm wondering why text-mods="true" while

  svn diff -c 1984 https://scm.gforge.inria.fr/anonscm/svn/mpfr

shows no diffs.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)