##// END OF EJS Templates
findrenames: speedup exact match...
Benoit Boissinot -
r9927:2ae4d086 default
parent child Browse files
Show More
@@ -276,11 +276,15 b' def findrenames(repo, added, removed, th'
276 276 if r not in ctx:
277 277 continue
278 278 fctx = ctx.filectx(r)
279 orig = fctx.data()
280 279
281 280 def score(text):
282 281 if not len(text):
283 282 return 0.0
283 if not fctx.cmp(text):
284 return 1.0
285 if threshold == 1.0:
286 return 0.0
287 orig = fctx.data()
284 288 # bdiff.blocks() returns blocks of matching lines
285 289 # count the number of bytes in each
286 290 equal = 0
General Comments 0
You need to be logged in to leave comments. Login now