allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#5738] Use quick_ratio instead of real_quick_ratio to reduce false-positive on _diffs_copied
Date Mon, 04 Feb 2013 18:46:53 GMT
Updated Branches:
  refs/heads/master 5c2861679 -> f6dde317b


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

Signed-off-by: Cory Johns <johnsca@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/master
Commit: f6dde317bc8319c52e39c7038ba6107d2435e0df
Parents: 5c28616
Author: Cory Johns <johnsca@geek.net>
Authored: Mon Feb 4 18:45:28 2013 +0000
Committer: Cory Johns <johnsca@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


Mime
View raw message