Refactoring: small renaming

This commit is contained in:
Dmitry
2017-09-04 12:04:19 -07:00
parent ee5eeea541
commit c372fe7c35
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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)
+3 -3
View File
@@ -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