On Sat, 2016-01-02 at 12:52 +0000, Daniel SHahaf wrote:
> Yves Martin wrote on Sat, Jan 02, 2016 at 12:29:54 +0100:
> > Hello,
> >
> > I am reading section "Packing revision properties (format 6+)" of file
> > https://svn.apache.org/repos/asf/subversion/trunk/subversion/libsvn_fs_fs/structure
> >
> > but I do not find explanation about the two first bytes of a packed
> > revprops corresponds to. They are visible just before the
> > "header" (first revision, number of revision, and each prop set sizes)
> >
>
> As that file says:
>
> We always apply data compression to the pack file - using the
> SVN_DELTA_COMPRESSION_LEVEL_NONE level if compression is disabled.
> (Note that compression at SVN_DELTA_COMPRESSION_LEVEL_NONE is not
> a no-op stream transformation although most of the data will remain
> human readable.)
>
> I assume those two bytes are the compression artifact, i.e., they won't
> be visible if you read the file through svn_stream_compressed(). See
> libsvn_subr/compress.c:zlib_encode().
Hello,
Thank you for that idea. Source comment indicates that two bytes
correspond to original/uncompressed content size. These bytes are
written whatever the content is compressed or not.
Regards
--
Yves Martin
Received on 2016-01-04 20:42:47 CET