-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Being able to call exp show
with multiple branches (--rev
) and a number of commits (-n
)
#9390
Comments
The internal API already supports multiple This should be a simple change to make for the CLI (TBH I thought the CLI already supported it) |
That was fast! Thanks! |
@daavoo we have an issue with this where if we call for a revision multiple times we only get the revision returned once. Would it be difficult (and/or dangerous) to change the logic or introduce a flag to change the behaviour to return duplicates? The use case is a user displaying multiple instances of the same commit across different branches. example: make a new branch from The reason we need this is to avoid making our own mapping of commits to branches before calling dvc or calling dvc multiple times. |
Sorry @mattseddon, I should have also realized this when we discussed yesterday. Are you also going to duplicate experiments in that case? More importantly, if we can make |
Also, I see in iterative/vscode-dvc#3941 (comment) that you are calling |
Tbh, it feels we should have the mapping on the VS Code side and pass only unique hashes to the API. @mattseddon how complicated is it? Why is it an issue considering that we already run |
If a commit is on both
We need to rework what has been written to do this. Atm |
Is the goal to get branches working in some simple way, or to have a UI that duplicates commits for every branch? Was duplication a priority at the start, or was it a natural consequence of the old approach with multiple Re: git log calls, if we add the commit message to |
We don't know what we are asking for until after it was sent back. If we're asking for We need duplication because when asking for more commits, we need to show more commits. We don't know ahead of time which commit is duplicated. Even if we call |
Thanks @sroy3! Sorry to make you explain all that, but now I understand. |
In the VS Code extension, we would like to show multiple branches at the same time in the table. Each with its own number of commits. We're currently doing this by calling
exp show
once per branch (dvc exp show --rev main -n 5
,dvc exp show --rev other-branch -n 3
...). We'd like to be able to do this in one call only (something likedvc exp show --rev main -n 5 --rev other-branch -n 3...
). Would it be possible?The text was updated successfully, but these errors were encountered: