コード例 #1
0
 def _get_patch_stats(patch_set):
     additions = 0
     deletions = 0
     for file in patch_set:
         additions += file.added
         deletions += file.removed
     total = additions + deletions
     return CommitStats(additions, deletions, total)
コード例 #2
0
 def _getPatchStats(self, commit_stats):
     return CommitStats(commit_stats.additions, commit_stats.deletions,
                        commit_stats.total)
コード例 #3
0
 def _get_patch_stats(commit_stats):
     return CommitStats(commit_stats.additions, commit_stats.deletions,
                        commit_stats.total)