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

Method update_to

scripts/release_notes/commitlist.py:399–402  ·  view source on GitHub ↗
(self, new_version)

Source from the content-addressed store, hash-verified

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))

Callers 2

update_existingFunction · 0.80
test_update_toMethod · 0.80

Calls 1

get_commits_betweenMethod · 0.80

Tested by 1

test_update_toMethod · 0.64