changeset 9927 | 2ae4d0865629 |
parent 9926 | 4b044b81cb54 |
child 9928 | a92539567ef3 |
--- a/mercurial/cmdutil.py Tue Nov 24 17:39:42 2009 +0100 +++ b/mercurial/cmdutil.py Tue Nov 24 18:21:47 2009 +0100 @@ -276,11 +276,15 @@ if r not in ctx: continue fctx = ctx.filectx(r) - orig = fctx.data() def score(text): if not len(text): return 0.0 + if not fctx.cmp(text): + return 1.0 + if threshold == 1.0: + return 0.0 + orig = fctx.data() # bdiff.blocks() returns blocks of matching lines # count the number of bytes in each equal = 0