[PATCH 5 of 5] findrenames: Update test suite to handle new similarity percentages

David Greenaway hg-dev at davidgreenaway.com
Sun Mar 7 18:28:09 CST 2010


On Sun, Mar 07, 2010 at 07:15:41PM +0100, Benoit Boissinot wrote:
> On Sun, Mar 07, 2010 at 04:12:52AM -0000, David Greenaway wrote:
> > findrenames: Update test suite to handle new similarity percentages.
> 
> Some of the %age changes looks problematic (now some files are 100%
> similar while they weren't even detected as similar‽)

That particular case is for a zero-length file. The current
findrenames() claims they are 0% similar (because the two files have no
common lines), while the new code claims they are 100% similar (because
the file contents are equal).

I suspect ignoring zero-length files may be the saner choice for most
users, however.

Cheers,
David



More information about the Mercurial-devel mailing list