incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [2/2] git commit: [#5738] Use real_quick_ratio instead of ratio for performance
Date Mon, 04 Feb 2013 17:41:15 GMT
Updated Branches:
  refs/heads/cj/5738 [created] 813917b53


[#5738] Use real_quick_ratio instead of ratio for performance

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/813917b5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/813917b5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/813917b5

Branch: refs/heads/cj/5738
Commit: 813917b53cfc99fa5394c31059f921c8b5dc44d4
Parents: 7712b0c
Author: Cory Johns <johnsca@geek.net>
Authored: Mon Feb 4 17:40:58 2013 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Mon Feb 4 17:40:58 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/813917b5/Allura/allura/model/repo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
index b46f3fa..b601de7 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.ratio()
+                ratio = diff.real_quick_ratio()
                 if ratio > best['ratio']:
                     best['ratio'] = ratio
                     best['name'] = added_name


Mime
View raw message