vcs/jujutsu: Support colocated checkouts in the daemon

Use Git for checkout placement and forge integration, and route
revision reads, diffs and mutations through Jujutsu. Compare at
the fork point and attach the unintegrated operation to change rows.

Create colocated workspaces from a selected checkout, preserve
recovery snapshots, and remove owned checkouts at final archive.
Use the source working-copy change when no default bookmark exists.
Expose capabilities, change search and native actions to clients.

Run the Jujutsu daemon cases in the integration job alongside
the Jujutsu checkout and recovery unit coverage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jackos1998andClaude Opus 5.5 committed 2026-11-24 22:56:42 +00:00
1 parent f329a061f0
commit 1b4905f32c
35 files changed
+2971 -103

No files matched your search

+19
View File
@@ -222,6 +222,23 @@ jobs:
node-version: "22"
cache: "npm"
- &server_jj
name: Install Jujutsu for checkout tests
shell: bash
run: |
if [[ "$RUNNER_OS" == Windows ]]; then
asset=jj-v0.47.1-x86_64-pc-windows-msvc.zip
checksum=72f9f80bc99d07a7f48d5f219cf5bab91f7e906e4b53f6c827948e646cd1152f
else
asset=jj-v0.47.1-x86_64-unknown-linux-musl.tar.gz
checksum=d4b657f622ee50929c8916466dfa3d6a6c17a0a32b50e7b2c793707ec9ebcad7
fi
curl --fail --location --retry 3 "https://github.com/jj-vcs/jj/releases/download/v0.47.1/$asset" -o "$RUNNER_TEMP/$asset"
echo "$checksum $RUNNER_TEMP/$asset" | sha256sum --check
mkdir -p "$RUNNER_TEMP/jj"
tar -xf "$RUNNER_TEMP/$asset" -C "$RUNNER_TEMP/jj"
echo "$RUNNER_TEMP/jj" >> "$GITHUB_PATH"
- &server_fetch
name: Fetch origin/main (worktree tests)
if: ${{ needs.changes.outputs.full != 'false' || needs.changes.outputs.server != 'false' }}
@@ -267,6 +284,7 @@ jobs:
- *server_capacity
- *server_checkout
- *server_node
- *server_jj
- *server_fetch
- *server_install
- *server_agent_clis
@@ -290,6 +308,7 @@ jobs:
- *server_capacity
- *server_checkout
- *server_node
- *server_jj
- *server_fetch
- *server_install
- *server_agent_clis