pub fn write_bundle<W: Write + Seek>(
writer: W,
head: &Head,
manifest: &Manifest,
blobs: &Blobs,
) -> Result<(), BundleError>Expand description
Write manifest and the blobs it names as a bundle, under head.
A head in another format is refused: this writes the one it reads.
Only blobs the manifest names are written — blobs may hold more, since an
artifact a later plugin replaced leaves its blob behind. Each is hashed as
it is copied and refused if it is not what its name says, which is the one
moment a blob table can be caught lying.