diff mercurial/similar.py @ 30791:ada160a8cfd8

similar: rename local variable to not collide with previous Future patches will move the score function to the module level, so let's not shadow that.
author Sean Farley <sean@farley.io>
date Sat, 07 Jan 2017 20:43:49 -0800
parents 0d83ad967bf8
children 0ae287eb6a4f
line wrap: on
line diff
--- a/mercurial/similar.py	Mon Jan 09 10:59:45 2017 -0800
+++ b/mercurial/similar.py	Sat Jan 07 20:43:49 2017 -0800
@@ -81,8 +81,8 @@
     repo.ui.progress(_('searching'), None)
 
     for dest, v in copies.iteritems():
-        source, score = v
-        yield source, dest, score
+        source, bscore = v
+        yield source, dest, bscore
 
 def findrenames(repo, added, removed, threshold):
     '''find renamed files -- yields (before, after, score) tuples'''