Artifact e85adde7c2dc0cb2509534f00b6fe322ddd06c3d7e9087e54cb9eb71b9c1dc9a:
- File docs/RELEASE-NOTES-0.14.20.md — part of check-in [3115bd5229] at 2026-11-22 18:01:43 on branch trunk — zit 0.14.20 (user: dmestas, size: 3026) [annotate] [blame] [check-ins using]
zit 0.14.20
zit 0.14.20 fixes a storage regression from 0.14.16: deltas received from
Fossil, and deltas zit pack wrote, were based on distant versions and
came out several times larger than Fossil's. A clone of fossil.fossil
stored 226 MB with 0.14.19 and stores 42 MB with this release.
This release is from trunk. The store format and the wire are unchanged
from 0.14.19, and check-in hashes do not change. A store written by
0.14.16 through 0.14.19 reads correctly; it is only larger than it
should be until zit pack rewrites it.
Receive keeps Fossil's deltas as sent
Fossil builds long delta chains: in fossil.fossil the deepest is 2,546 links, and over half the artifacts sit deeper than 64. Since 0.14.16, zit kept a received delta as sent only up to depth 64 and re-based anything deeper onto a base chosen by a level derived from the artifact's hash, usually a distant version. Those deltas were about nine times the size of Fossil's.
Receive now keeps every delta exactly as the sender built it, at any depth, as Fossil does. Reading an artifact walks its chain in a loop bounded by the store's size and refuses a cycle, so a chain thousands of links deep reads correctly.
Pack and writes base an artifact on its parent, with a cost bound
zit pack and local writes now delta an artifact against its parent or
lineage version first, and no longer use hash-keyed skip-deltas. To keep
reading any version cheap, an artifact is stored whole when the delta
bytes along its chain, plus its own delta, would exceed its own size, so
reading it costs at most about twice its size. The rule is Mercurial's
sparse-revlog bound (Gregory Szorc). Pack keeps a received chain as it is
while it fits that bound and recomputes only the links that do not.
Measured with the same history (MB):
| Fossil | 0.14.19 after pack | 0.14.20 clone | 0.14.20 after pack | |
|---|---|---|---|---|
| fossil.fossil | 38.7 (artifacts) | 231.6 | 42.4 | 55.9 |
| SQLite | 178.9 (file) | 443 | 119.5 | 122.0 |
| Tcl | 371.6 (file) | 576 | 221.3 | 248.6 |
| pkgsrc to 2012 | 520.9 | 521.3 |
Pack makes a store somewhat larger than the clone it starts from, because the bound cuts the longest chains with whole copies; that is the price of bounded reads.
Upgrading
Stores that received pushes or clones from Fossil while running 0.14.16
through 0.14.19 hold the oversized deltas. Run zit pack on them after
upgrading to rewrite them at the new size. It needs about the store's
size in free disk. Stores written only by zit gain on their next pack too.
Qualification
The release manifest records native qualification against the exact tagged source archive on macOS ARM64, Linux x86-64 and Linux ARM64, using the pinned Zig 0.17.0 toolchain. Publication is gated on unit and end-to-end tests, Git differentials, deterministic simulation, seeded fuzzing, and Fossil interoperability checks on every distributed target.
For the basis of the conformance claim, see the 0.1.0 release notes.