MCPcopy Create free account
hub / github.com/pytorch/pytorch / create_new

Method create_new

scripts/release_notes/commitlist.py:75–81  ·  view source on GitHub ↗
(path, base_version, new_version)

Source from the content-addressed store, hash-verified

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]:

Callers 4

create_newFunction · 0.80
test_create_newMethod · 0.80
test_read_writeMethod · 0.80
test_update_toMethod · 0.80

Calls 2

CommitListClass · 0.85
get_commits_betweenMethod · 0.80

Tested by 3

test_create_newMethod · 0.64
test_read_writeMethod · 0.64
test_update_toMethod · 0.64