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

Benoit Boissinot benoit.boissinot at ens-lyon.org
Sun Mar 7 12:15:41 CST 2010


On Sun, Mar 07, 2010 at 04:12:52AM -0000, David Greenaway wrote:
> # HG changeset patch
> # User David Greenaway <hg-dev at davidgreenaway.com>
> # Date 1267934964 -39600
> # Node ID 7ada26c68e08e8c5ac500a26f731ab80a13c3628
> # Parent  5f79abbdc9e74816cb64ecdf37a774b11474a6e9
> 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‽)
> 
> +recording removal of empty-file as rename to another-empty-file (100% similar)

> -recording removal of tiny-file as rename to small-file (82% similar)
> +recording removal of tiny-file as rename to small-file (66% similar)

> -echo 'this is a test' > a
> +echo 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. In venenatis aliquet.' > a

>  diff --git a/b b/b
>  new file mode 100644
>  --- /dev/null
>  +++ b/b
>  @@ -0,0 +1,2 @@
> -+this is a test
> ++Lorem ipsum dolor sit amet, consectetur adipiscing elit. In venenatis aliquet.
>  +foo
>  EOF

> diff --git a/tests/test-import.out b/tests/test-import.out
> --- a/tests/test-import.out
> +++ b/tests/test-import.out

> -recording removal of a as rename to b (88% similar)
> +recording removal of a as rename to b (99% similar)

-- 
:wq


More information about the Mercurial-devel mailing list