(self, new_version)
| 397 | return commits |
| 398 | |
| 399 | def update_to(self, new_version): |
| 400 | last_hash = self.commits[-1].commit_hash |
| 401 | new_commits = CommitList.get_commits_between(last_hash, new_version) |
| 402 | self.commits += new_commits |
| 403 | |
| 404 | def stat(self): |
| 405 | counts = defaultdict(lambda: defaultdict(int)) |