You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/02/04 19:45:54 UTC

[2/2] git commit: [#5738] Use quick_ratio instead of real_quick_ratio to reduce false-positive on _diffs_copied

Updated Branches:
  refs/heads/cj/5738 813917b53 -> f6dde317b


[#5738] Use quick_ratio instead of real_quick_ratio to reduce false-positive on _diffs_copied

Signed-off-by: Cory Johns <jo...@geek.net>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/f6dde317
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/f6dde317
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/f6dde317

Branch: refs/heads/cj/5738
Commit: f6dde317bc8319c52e39c7038ba6107d2435e0df
Parents: 5c28616
Author: Cory Johns <jo...@geek.net>
Authored: Mon Feb 4 18:45:28 2013 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Mon Feb 4 18:45:32 2013 +0000

----------------------------------------------------------------------
 Allura/allura/model/repo.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/f6dde317/Allura/allura/model/repo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
index b601de7..10a6521 100644
--- a/Allura/allura/model/repo.py
+++ b/Allura/allura/model/repo.py
@@ -260,7 +260,7 @@ class Commit(RepoObject):
                     continue
                 diff = SequenceMatcher(None, removed_blob.text,
                                        added_blob.text)
-                ratio = diff.real_quick_ratio()
+                ratio = diff.quick_ratio()
                 if ratio > best['ratio']:
                     best['ratio'] = ratio
                     best['name'] = added_name