2022-01-18 16:33:05 +01:00
|
|
|
depot views
|
|
|
|
===========
|
|
|
|
|
|
|
|
This folder contains external views of depot content, defined using
|
|
|
|
josh workspaces. See the individual views for a description of their
|
2023-03-03 15:17:16 +01:00
|
|
|
individual content and usage information.
|
|
|
|
|
|
|
|
Testing changes locally
|
|
|
|
-----------------------
|
|
|
|
|
2024-08-18 22:18:10 +02:00
|
|
|
Generally, when iterating on these files, it's best to invoke `josh-filter`
|
|
|
|
(from the `josh` package) locally to inspect how the workspace would look like:
|
2023-03-03 15:17:16 +01:00
|
|
|
|
|
|
|
- Commit your changes. This is required, as `josh-filter` operates on your
|
|
|
|
`HEAD`, not working directory state.
|
|
|
|
- Invoke `josh-filter` with the filter expression,
|
2023-03-30 16:30:22 +02:00
|
|
|
for example `josh-filter ':workspace=views/tvix'`.
|
2023-03-03 15:17:16 +01:00
|
|
|
- Peek at the synthesized git history by looking at `FILTERED_HEAD`.
|
|
|
|
|
|
|
|
Testing changes in Gerrit
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
It's also possible to clone resulting workspaces for CLs that were already
|
|
|
|
pushed to Gerrit, but didn't land in master yet.
|
|
|
|
|
|
|
|
For CL1234 at revision 2, the URL passed to `git clone` would look like this:
|
|
|
|
|
|
|
|
```
|
|
|
|
https://code.tvl.fyi/depot.git@refs/changes/32/1234/2:workspace=views/kit.git
|
|
|
|
````
|