allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [14/14] git commit: [#5978] Fixed empty LCD info from double iteration of result set
Date Fri, 29 Mar 2013 16:55:43 GMT
[#5978] Fixed empty LCD info from double iteration of result set

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/84665886
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/84665886
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/84665886

Branch: refs/heads/cj/5978
Commit: 84665886877d6f47e54ec0f0753d48619acf581a
Parents: 53635e7
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Fri Mar 29 16:54:53 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Fri Mar 29 16:55:18 2013 +0000

----------------------------------------------------------------------
 Allura/allura/model/repo.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/84665886/Allura/allura/model/repo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
index 85fa875..4d396b8 100644
--- a/Allura/allura/model/repo.py
+++ b/Allura/allura/model/repo.py
@@ -533,7 +533,7 @@ class Tree(RepoObject):
         if lcd is None:
             return []
         commit_ids = [e.commit_id for e in lcd.entries]
-        commits = Commit.query.find(dict(_id={'$in': commit_ids}))
+        commits = list(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}


Mime
View raw message