exp push/pull: add --rev, -n, -A flags#3192
Conversation
2858ef3 to
2276358
Compare
This comment has been minimized.
This comment has been minimized.
--rev, -n, -A flag exp pull/pushexp push/pull: add --rev, -n, -A flags
jorgeorpinel
left a comment
There was a problem hiding this comment.
These will need an update again once #3187 (review) is resolved 🙂
related to treeverse/dvc#7255 Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
c02100c to
4010675
Compare
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
| usage: dvc exp pull [-h] [-q | -v] [-A] [--rev <commit>] [-n <num>] [-f] | ||
| [--no-cache] [-r <name>] [-j <number>] [--run-cache] | ||
| git_remote experiment | ||
|
|
||
| positional arguments: | ||
| git_remote Git remote name or Git URL | ||
| experiment Experiment to pull | ||
| experiment Experiments to pull |
There was a problem hiding this comment.
If it accepts multiple experiments, shouldn't the usage block look different?
There was a problem hiding this comment.
related to #3340?
Excuse me, do you mean
usage: dvc exp pull [-h] [-q | -v] [-A] [--rev <commit>] [-n <num>] [-f]
[--no-cache] [-r <name>] [-j <number>] [--run-cache]
git_remote experiments
or
usage: dvc exp pull [-h] [-q | -v] [-A] [--rev <commit>] [-n <num>] [-f]
[--no-cache] [-r <name>] [-j <number>] [--run-cache]
git_remote experiment1 experiment2 experiment3 ...
If the first one, we also need some modifications on the core repo side. If the second, this usage is generated by the argparse's help message in dvc exp pull --help.
There was a problem hiding this comment.
This is what I get for dvc exp pull --help:
usage: dvc experiments pull [-h] [-q | -v] [-A] [--rev <commit>] [-n <num>] [-f]
[--no-cache] [-r <name>] [-j <number>] [--run-cache]
<git_remote> [<experiment> ...]
Pull an experiment from a Git remote.
Documentation: <https://man.dvc.org/exp/pull>
positional arguments:
<git_remote> Git remote name or Git URL.
<experiment> Experiments to pull.
Is there any reason we wouldn't use that? Are others not seeing the same?
There was a problem hiding this comment.
Yes what you see is what I meant @dberenbaum , specifically the line
<git_remote> [<experiment> ...]
But if this is part of #3340 and other refs need to be updated as well, maybe don't include the change here at all @karajan1001 . Thanks
| usage: dvc exp push [-h] [-q | -v] [-A] [--rev <commit>] [-n <num>] [-f] | ||
| [--no-cache] [-r <name>] [-j <number>] [--run-cache] | ||
| git_remote experiment | ||
|
|
||
| positional arguments: | ||
| git_remote Git remote name or Git URL | ||
| experiment Experiment to push | ||
| experiment Experiments to push |
There was a problem hiding this comment.
Also change line 11 to git_remote [experiment [experiment ...]]?
There was a problem hiding this comment.
Idk, can we discuss that in a separate PR? Ideally in the core PR related to this. Thanks
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
Related to treeverse/dvc#7255