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/01 21:13:24 UTC
git commit: [#5854] Make Tree._lcd_map handle bad LastCommit entries
better
Updated Branches:
refs/heads/cj/5854 5b00f9de1 -> a0cc6214a
[#5854] Make Tree._lcd_map handle bad LastCommit entries better
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/a0cc6214
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/a0cc6214
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/a0cc6214
Branch: refs/heads/cj/5854
Commit: a0cc6214a81d003c0f6ebe63eaaf19df6e073011
Parents: 5b00f9d
Author: Cory Johns <jo...@geek.net>
Authored: Fri Mar 1 20:13:02 2013 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Fri Mar 1 20:13:02 2013 +0000
----------------------------------------------------------------------
Allura/allura/model/repo.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/a0cc6214/Allura/allura/model/repo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
index 1510de6..60f153e 100644
--- a/Allura/allura/model/repo.py
+++ b/Allura/allura/model/repo.py
@@ -542,7 +542,7 @@ class Tree(RepoObject):
for name in names:
commit_info = commit_infos.get(lcd.by_name.get(name))
if not commit_info:
- continue
+ commit_info = defaultdict(str)
results.append(dict(
kind=type,
name=name,
@@ -552,7 +552,7 @@ class Tree(RepoObject):
author_email=commit_info['author_email'],
author_url=commit_info['author_url'],
date=commit_info['date'],
- href=self.repo.url_for_commit(commit_info['id']),
+ href=self.repo.url_for_commit(commit_info['id']) if 'id' in commit_info,
shortlink=commit_info['shortlink'],
summary=commit_info['summary'],
),