Skip to content

Commit

Permalink
exp: Update --rev to support append action.
Browse files Browse the repository at this point in the history
Closes #9390
  • Loading branch information
daavoo committed May 8, 2023
1 parent 6b6084a commit cdde14a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions dvc/commands/experiments/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def add_rev_selection_flags(
experiments_subcmd_parser.add_argument(
"--rev",
type=str,
action="append",
default=None,
help=msg,
metavar="<commit>",
Expand Down
10 changes: 5 additions & 5 deletions tests/unit/command/test_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def test_experiments_show(dvc, scm, mocker):
hide_queued=True,
hide_failed=True,
num=1,
revs="foo",
revs=["foo"],
sha_only=True,
param_deps=True,
fetch_running=True,
Expand Down Expand Up @@ -226,7 +226,7 @@ def test_experiments_list(dvc, scm, mocker):
m.assert_called_once_with(
cmd.repo,
git_remote="origin",
rev="foo",
rev=["foo"],
all_commits=True,
num=-1,
)
Expand Down Expand Up @@ -265,7 +265,7 @@ def test_experiments_push(dvc, scm, mocker):
cmd.repo,
"origin",
["experiment1", "experiment2"],
rev="foo",
rev=["foo"],
all_commits=True,
num=2,
force=True,
Expand Down Expand Up @@ -322,7 +322,7 @@ def test_experiments_pull(dvc, scm, mocker):
cmd.repo,
"origin",
["experiment"],
rev="foo",
rev=["foo"],
all_commits=True,
num=1,
force=True,
Expand Down Expand Up @@ -371,7 +371,7 @@ def test_experiments_remove_flag(dvc, scm, mocker, capsys, caplog):
cmd.repo,
exp_names=[],
all_commits=True,
rev="foo",
rev=["foo"],
num=2,
queue=False,
git_remote="myremote",
Expand Down

0 comments on commit cdde14a

Please sign in to comment.