(path, base_version, new_version)
| 73 | |
| 74 | @staticmethod |
| 75 | def create_new(path, base_version, new_version): |
| 76 | if os.path.exists(path): |
| 77 | raise ValueError( |
| 78 | "Attempted to create a new commitlist but one exists already!" |
| 79 | ) |
| 80 | commits = CommitList.get_commits_between(base_version, new_version) |
| 81 | return CommitList(path, commits) |
| 82 | |
| 83 | @staticmethod |
| 84 | def read_from_disk(path) -> List[Commit]: |