incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [4/21] git commit: [#4691] Fixed error computing LCDs when refreshing a repo
Date Fri, 07 Dec 2012 16:11:48 GMT
[#4691] Fixed error computing LCDs when refreshing a repo

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

Branch: refs/heads/cj/4691
Commit: 701a7349401a61fe01d31c150d91cfa412ef790c
Parents: 2e0d597
Author: Cory Johns <johnsca@geek.net>
Authored: Fri Dec 7 16:11:10 2012 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Fri Dec 7 16:11:27 2012 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/701a7349/Allura/allura/model/repo_refresh.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repo_refresh.py b/Allura/allura/model/repo_refresh.py
index 4796daa..ea0154b 100644
--- a/Allura/allura/model/repo_refresh.py
+++ b/Allura/allura/model/repo_refresh.py
@@ -102,7 +102,7 @@ def refresh_repo(repo, all_commits=False, notify=True):
     if repo._refresh_precompute:
         cache = ModelCache()
         for i, oid in enumerate(reversed(commit_ids)):
-            ci = CommitDoc.m.find(dict(_id=oid), validate=False).next()
+            ci = cache.get(Commit, dict(_id=oid))
             compute_lcds(ci, cache)
             if (i+1) % 100 == 0:
                 log.info('Compute last commit info %d: %s', (i+1), ci._id)


Mime
View raw message