Closed skshetry closed 9 months ago
What will it be used for @skshetry? Just wondering if there is some broader context around this.
What will it be used for @skshetry? Just wondering if there is some broader context around this.
It might be useful for tracking (streaming) dvc
datasets. For tracking a dvc
dataset, all you need is a revision
.
eg:
$ dvc ds add --url git@github.com:iterative/example-get-started.git --rev=main --type dvc --name example-get-started --path data/data.xml
We can record revision of main
and keep it as rev_lock
in dvc.lock
.
Later on dvc ds update
, we can check what revision main
references to, and see if it can be updated.
At the moment, we need to clone a repository, which can be expensive. If we could just ask the remote server, this operation can be much cheaper.
Okay, makes a lot of sense in that case. Thanks for the context!
Similar to how
ls-remote
works.This will only work for references, so it might not work for commit revisions (and, maybe I am missing others). But it could be a fast path for us.