Return-Path: X-Original-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 767DBFFFA for ; Tue, 26 Mar 2013 22:39:14 +0000 (UTC) Received: (qmail 92447 invoked by uid 500); 26 Mar 2013 22:39:14 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 92432 invoked by uid 500); 26 Mar 2013 22:39:14 -0000 Mailing-List: contact allura-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-commits@incubator.apache.org Received: (qmail 92421 invoked by uid 99); 26 Mar 2013 22:39:14 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Mar 2013 22:39:14 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 092D982152D; Tue, 26 Mar 2013 22:39:14 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: johnsca@apache.org To: allura-commits@incubator.apache.org Message-Id: <46500fef857f4ed281e479a222659b0e@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: [#5978] Fixed guess_repo being called for rendering SCM trees Date: Tue, 26 Mar 2013 22:39:14 +0000 (UTC) Updated Branches: refs/heads/cj/5978 [created] fc6c1af16 [#5978] Fixed guess_repo being called for rendering SCM trees Signed-off-by: Cory Johns Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/fc6c1af1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/fc6c1af1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/fc6c1af1 Branch: refs/heads/cj/5978 Commit: fc6c1af16440eae89af2063bd234ead44ba0c349 Parents: aced859 Author: Cory Johns Authored: Tue Mar 26 22:38:56 2013 +0000 Committer: Cory Johns Committed: Tue Mar 26 22:38:56 2013 +0000 ---------------------------------------------------------------------- Allura/allura/model/repo.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fc6c1af1/Allura/allura/model/repo.py ---------------------------------------------------------------------- diff --git a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py index 3df5f59..40f4567 100644 --- a/Allura/allura/model/repo.py +++ b/Allura/allura/model/repo.py @@ -532,6 +532,8 @@ class Tree(RepoObject): return [] commit_ids = [e.commit_id for e in lcd.entries] commits = Commit.query.find(dict(_id={'$in': commit_ids})) + for commit in commits: + commit.set_context(self.repo) commit_infos = {c._id: c.info for c in commits} by_name = lambda n: n.name tree_names = sorted([n.name for n in self.tree_ids])