[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Question about packed revprops structure

From: Yves Martin <ymartin1040_at_gmail.com>
Date: Mon, 04 Jan 2016 20:42:40 +0100

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

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.