exp show: cleanup UI issues (#5361)

* exp show: add -n/--num to display the last N commits from HEAD

* exp run: fix empty commit with no changes

* add test for exp show with multiple commits

* allow -n greater than num commits in repo

* review fix
This commit is contained in:
Peter Rowlands (변기호)
2021-02-02 11:35:02 +09:00
committed by GitHub
parent 2ea5ef07dd
commit d05be36694
5 changed files with 49 additions and 2 deletions
+3
View File
@@ -65,6 +65,8 @@ def test_experiments_show(dvc, scm, mocker):
"--all-branches",
"--all-commits",
"--sha",
"-n",
"1",
]
)
assert cli_args.func == CmdExperimentsShow
@@ -80,6 +82,7 @@ def test_experiments_show(dvc, scm, mocker):
all_branches=True,
all_commits=True,
sha_only=True,
num=1,
)