You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/02/05 21:23:35 UTC

[16/42] git commit: [#4691] Fixed error computing LCDs when refreshing a repo

[#4691] Fixed error computing LCDs when refreshing a repo

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

Branch: refs/heads/master
Commit: 9d48b05b956d2e35584382fc6c5298a65102d88a
Parents: 0e77a20
Author: Cory Johns <jo...@geek.net>
Authored: Fri Dec 7 16:11:10 2012 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Tue Feb 5 20:22:50 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/9d48b05b/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)