Renaming: dvc find

This commit is contained in:
Dmitry
2017-11-16 01:16:20 -08:00
parent 86a933ea71
commit 5e38fa7078
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -427,14 +427,14 @@ def parse_args(argv=None):
parents=[parent_parser],
help='Find branch name')
find_parser.set_defaults(func=CmdFind)
find_parser.add_argument(
'branch_name',
nargs='?',
help='Branch name regexp.')
find_parser.add_argument(
'target',
nargs='?',
help='Target metric file.')
find_parser.add_argument(
'-r',
'--branch-regex',
help='Branch name regexp.')
find_parser.add_argument(
'-c',
'--criteria',
+2 -2
View File
@@ -11,9 +11,9 @@ class CmdFind(CmdBase):
def run(self):
with DvcLock(self.is_locker, self.git):
fname = self.parsed_args.target
regex = self.parsed_args.branch_regex
branch_name = self.parsed_args.branch_name
branches = self.git.branches(regex)
branches = self.git.branches(branch_name)
metrics = [self.read_metrics(fname, b) for b in branches]
zipped = zip(metrics, branches)