HomeSoftware Heritage

swh.storage: Allow storage of extra git headers in revisions

Description

swh.storage: Allow storage of extra git headers in revisions

We store the extra git headers (bytes) in the
metadata->'extra_git_headers' field of the revision.

The values are decoded as if they were utf-8 strings. When an invalid
sequence is encountered, the bytes are encoded as a \x escape. We also
encode NUL bytes as such, as U+0000 is invalid in a JSON string and
can't be stored in PostgreSQL.

Details

Provenance
olasdAuthored on Feb 10 2016, 12:22 PM
qcamposCommitted on Jun 23 2016, 11:46 AM
qcamposPushed on Jun 27 2016, 1:45 PM
qcamposPushed on Jun 27 2016, 1:45 PM
qcamposPushed on Jun 27 2016, 1:43 PM
qcamposPushed on Jun 27 2016, 1:41 PM
qcamposPushed on Jun 27 2016, 1:21 PM
qcamposPushed on Jun 27 2016, 1:10 PM
qcamposPushed on Jun 27 2016, 1:09 PM
qcamposPushed on Jun 27 2016, 12:18 PM
Differential Revision
D67: Recreate DOBJS commit history
Parents
rDOBJSc1f45f71f020: sql/swh-schema: Handle negative UTC offsets in revision and release dates
Branches
Unknown
Tags
Unknown