vcs.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:sphinxcontrib-vcs 作者: t2y 项目源码 文件源码
def run(self):
        list_node = nodes.bullet_list()

        number_of_revisions = self.options.get(OPTION_NUMBER_OF_REVISIONS, 10)
        repo = self.get_repo(number_of_revisions)
        if repo is None:
            return

        revision = self.options.get(OPTION_REVISION)
        for commit in repo.get_commits(revision=revision):
            item = self.get_changelog(repo, commit)
            list_node.append(item)
        return [list_node]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号