# HG changeset patch # User Sean Farley # Date 1483850629 28800 # Node ID ada160a8cfd85bf7bbaf021e7066cf08101b062b # Parent dbcc10cf7f8d9318688d5d9771cdc92d67793748 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. diff -r dbcc10cf7f8d -r ada160a8cfd8 mercurial/similar.py --- 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'''