Commit c4bd8f8
authored
feat(sync) Recover from hangs and surface progress (#544)
`vcspull sync` no longer freezes a batch when one repository hangs on
credentials or stalls on a slow fetch, and the user can see what's
running while it does. Adds a per-repo timeout, a live status
indicator, a streaming output panel, an npm/pnpm-style debug log,
SIGINT-clean Ctrl-C handling, and quieter libvcs output by default.
- **Per-repo timeout** with a 10s wall-clock default (`--timeout
SECONDS`, `VCSPULL_SYNC_TIMEOUT_SECONDS`). Timed-out repos surface
in the summary with a copy-pasteable rerun command.
- **Live status indicator** — spinner in a terminal, periodic "still
syncing" heartbeat in pipes. Disabled under `--json`, `--ndjson`,
`--color=never`.
- **Streaming output trail** — git's `From <url>` / `* [new branch]`
output appears in a 3-line panel above the spinner and collapses
to the permanent `✓ Synced` line on completion. Tunable with
`--panel-lines N` / `VCSPULL_PROGRESS_LINES`.
- **Per-invocation debug log** under `$TMPDIR/vcspull/`, surfaced
only on failure or timeout (`--log-file PATH`, `--no-log-file`).
- **Ctrl-C aborts shell chains** — `vcspull sync ~/a; vcspull sync
~/b` now stops on the first interrupt, matching `git clone; git
fetch`.
- **Quieter default output** — libvcs's per-repo log crumbs no
longer print at the default verbosity. `-v` opens INFO; `-vv`
opens DEBUG. The debug log file always captures DEBUG.
Breaking changes:
- Minimum libvcs bumped from 0.39.0 to 0.40.0 (for upstream per-repo
timeout and fast `set_remotes` fixes this branch relies on).
Fixes #54315 files changed
Lines changed: 3461 additions & 67 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
40 | 89 | | |
41 | 90 | | |
42 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
444 | 451 | | |
445 | 452 | | |
446 | 453 | | |
| |||
466 | 473 | | |
467 | 474 | | |
468 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
469 | 480 | | |
470 | 481 | | |
471 | 482 | | |
| |||
0 commit comments