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)
def _getPatchStats(self, commit_stats): return CommitStats(commit_stats.additions, commit_stats.deletions, commit_stats.total)
def _get_patch_stats(commit_stats): return CommitStats(commit_stats.additions, commit_stats.deletions, commit_stats.total)