On 2020-12-04 20:41:27 +0000, 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 > > <logentry > > revision="1984"> > > <author>vlefevre</author> > > <date>2002-07-23T16:22:08.000000Z</date> > > <paths> > > <path > > prop-mods="false" > > text-mods="true" > > kind="file" > > action="M">/trunk/mul.c</path> > > </paths> > > <msg>Fixed permissions. > > </msg> > > </logentry> > > </log> > > > > 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 <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)