##// 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 if r not in ctx:
276 if r not in ctx:
277 continue
277 continue
278 fctx = ctx.filectx(r)
278 fctx = ctx.filectx(r)
279 orig = fctx.data()
280
279
281 def score(text):
280 def score(text):
282 if not len(text):
281 if not len(text):
283 return 0.0
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 # bdiff.blocks() returns blocks of matching lines
288 # bdiff.blocks() returns blocks of matching lines
285 # count the number of bytes in each
289 # count the number of bytes in each
286 equal = 0
290 equal = 0
General Comments 0
You need to be logged in to leave comments. Login now