changeset 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 dbcc10cf7f8d
children 4215dc1b708b
files mercurial/similar.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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'''