uvcs_revision_diff
Compare one text file across two revisions, a revision and the workspace copy, or a changeset and its parent. Returns a read-only unified line diff, truncated after 200,000 characters.
Instructions
Return a unified line diff of one text file between two revisions, or between a revision and the workspace copy. Pass changeset to see what that changeset changed in the file. Output longer than 200000 characters is truncated. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Newer side: cs:130, lb:LABEL, or a branch. Omit to compare with the file in the workspace. | |
| from | No | Older side: cs:123, lb:LABEL, or a branch such as /main (latest revision on it). | |
| context | No | Unchanged lines around each change, from 0 to 20. Default: 3. | |
| filePath | Yes | Path relative to UVCS_WORKSPACE, for example Assets/Scripts/Player.cs. | |
| changeset | No | Changeset spec such as cs:123. Compares the file in that changeset with its parent changeset. Do not combine with from/to. |