Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix history bug.

  • Loading branch information...
commit 5db5b609b1aaf78938c4e0eefd45c6866c114e16 1 parent 52d31c7
authored February 13, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  koshinuke/core.py
4  koshinuke/core.py
@@ -161,7 +161,7 @@ def get_commit(project, repository, rev):
161 161
                     'oldcontent': d.b_blob.data_stream.read().decode('utf-8')
162 162
                     })
163 163
             diffs.append(diff)
164  
-    return {'commit': rev, 'parent': [p.hexsha for p in parents],
  164
+    return {'commit': rev, 'parents': [p.hexsha for p in parents],
165 165
             'diff': diffs, 'stats': {'files': commit.stats.files,
166 166
                                      'total': commit.stats.total},
167 167
             'timestamp': commit.committed_date,
@@ -312,7 +312,7 @@ def _get_project_path(project):
312 312
 
313 313
 def _commitdata(commit):
314 314
     return {'commit': commit.hexsha,
315  
-            'parent': [c.hexsha for c in commit.parents],
  315
+            'parents': [c.hexsha for c in commit.parents],
316 316
             'timestamp': commit.committed_date,
317 317
             'author': commit.author.name,
318 318
             'message': commit.message}

0 notes on commit 5db5b60

Please sign in to comment.
Something went wrong with that request. Please try again.