Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exp: Update --rev to support append action. #9391

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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