Permalink
Browse files

fix history bug.

  • Loading branch information...
1 parent 52d31c7 commit 5db5b609b1aaf78938c4e0eefd45c6866c114e16 lanius committed Feb 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 koshinuke/core.py
View
4 koshinuke/core.py
@@ -161,7 +161,7 @@ def get_commit(project, repository, rev):
'oldcontent': d.b_blob.data_stream.read().decode('utf-8')
})
diffs.append(diff)
- return {'commit': rev, 'parent': [p.hexsha for p in parents],
+ return {'commit': rev, 'parents': [p.hexsha for p in parents],
'diff': diffs, 'stats': {'files': commit.stats.files,
'total': commit.stats.total},
'timestamp': commit.committed_date,
@@ -312,7 +312,7 @@ def _get_project_path(project):
def _commitdata(commit):
return {'commit': commit.hexsha,
- 'parent': [c.hexsha for c in commit.parents],
+ 'parents': [c.hexsha for c in commit.parents],
'timestamp': commit.committed_date,
'author': commit.author.name,
'message': commit.message}

0 comments on commit 5db5b60

Please sign in to comment.