def get_revision_list(self, article_path):
"""Get a list of revision objects for a given article title
"""
revisions = []
for commit in self.get_commits(article_path):
committed_date = arrow.get(commit.committed_date)
revisions.append({
'id': commit.hexsha,
'message': commit.message,
'author': commit.author.name,
'email': commit.author.email,
'committed': str(committed_date),
'committed_humanized': committed_date.humanize()
})
return revisions
评论列表
文章目录