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 2013/03/26 23:39:14 UTC

git commit: [#5978] Fixed guess_repo being called for rendering SCM trees

Updated Branches:
  refs/heads/cj/5978 [created] fc6c1af16


[#5978] Fixed guess_repo being called for rendering SCM trees

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/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 <jo...@geek.net>
Authored: Tue Mar 26 22:38:56 2013 +0000
Committer: Cory Johns <jo...@geek.net>
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])