incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [30/50] git commit: [#4691] Fixed error computing LCDs when refreshing a repo
Date Thu, 10 Jan 2013 18:08:21 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/4b6c74d2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/4b6c74d2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/4b6c74d2

Branch: refs/heads/cj/4691
Commit: 4b6c74d21d1d44fac8cebbfb460aae3eefb66c68
Parents: 8053a80
Author: Cory Johns <johnsca@geek.net>
Authored: Fri Dec 7 16:11:10 2012 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Thu Jan 10 16:27:15 2013 +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/4b6c74d2/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