mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-12 15:28:21 +01:00
Refactoring: small renaming
This commit is contained in:
+1
-1
@@ -70,6 +70,6 @@ class Commit(object):
|
||||
def branch_tips(self):
|
||||
return self._branch_tips
|
||||
|
||||
def add_branch_typs(self, tips):
|
||||
def add_branch_tips(self, tips):
|
||||
for tip in tips:
|
||||
self._branch_tips.append(tip)
|
||||
|
||||
@@ -92,7 +92,7 @@ class Workflow(object):
|
||||
child_commit_hashes = self._edges.get(commit.hash)
|
||||
|
||||
if child_commit_hashes and all(self._commits[hash].is_repro for hash in child_commit_hashes):
|
||||
self._upstream_metric(child_commit_hashes, commit)
|
||||
self._upstream_metrics(child_commit_hashes, commit)
|
||||
|
||||
for hash in child_commit_hashes:
|
||||
self._commits[hash].add_parents(commit.parent_hashes)
|
||||
@@ -107,7 +107,7 @@ class Workflow(object):
|
||||
return False
|
||||
pass
|
||||
|
||||
def _upstream_metric(self, child_commit_hashes, commit):
|
||||
def _upstream_metrics(self, child_commit_hashes, commit):
|
||||
if commit.has_target_metric:
|
||||
for hash in child_commit_hashes:
|
||||
if not self._commits[hash].has_target_metric:
|
||||
@@ -115,7 +115,7 @@ class Workflow(object):
|
||||
|
||||
if commit.branch_tips:
|
||||
for hash in child_commit_hashes:
|
||||
self._commits[hash].add_branch_typs(commit.branch_tips)
|
||||
self._commits[hash].add_branch_tips(commit.branch_tips)
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user