You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2012/12/07 17:11:48 UTC
[4/21] 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/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 <jo...@geek.net>
Authored: Fri Dec 7 16:11:10 2012 +0000
Committer: Cory Johns <jo...@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)