sapling/remotefilelog/cdatapack
Tony Tung 58e395d2e6 [cdatapack] utility to retrieve and checksum the delta chain
Summary:
Given a node sha, find it in the index file and retrieve the deltas.  Checksum the data and dump it.

Depends on D3637000, D3636945

Test Plan:
```
[andromeda]:~/work/mercurial/facebook-hg-rpms/remotefilelog:68cd351> /Users/tonytung/Library/Caches/CLion2016.2/cmake/generated/cdatapack-64b7828e/64b7828e/Debug0/cdatapack_get  d864669a5651d04505ec6e5e9dba1319cde71f7b  f2e53f83c5dc806aa2eda87bb15fe0367baf3a7e

source/zippydb/tier_spec/tier_settings/zippydb.wildcard.tmpfs.zippydb_settings.cconf
Node                                      Delta Base                                Delta SHA1                                Delta Length
f2e53f83c5dc806aa2eda87bb15fe0367baf3a7e  0000000000000000000000000000000000000000  f32b366a6c44430df6526133f82f9638426ba9c5  37769
[andromeda]:~/work/mercurial/facebook-hg-rpms/remotefilelog:68cd351> hg debugdatapack d864669a5651d04505ec6e5e9dba1319cde71f7b --node f2e53f83c5dc806aa2eda87bb15fe0367baf3a7e

source/zippydb/tier_spec/tier_settings/zippydb.wildcard.tmpfs.zippydb_settings.cconf
Node                                      Delta Base                                Delta SHA1                                Delta Length
f2e53f83c5dc806aa2eda87bb15fe0367baf3a7e  0000000000000000000000000000000000000000  f32b366a6c44430df6526133f82f9638426ba9c5  37769
[andromeda]:~/work/mercurial/facebook-hg-rpms/remotefilelog:68cd351>
```

Reviewers: durham

Reviewed By: durham

Subscribers: mitrandir

Differential Revision: https://phabricator.intern.facebook.com/D3637416

Signature: t1:3637416:1470094723:bce7e903cd0b80c293e16b7532c49e552d3039ef
2016-08-03 15:29:01 -07:00
..
buffer.h [remotefilelog] initial checkin of a c datapack parser 2016-08-01 14:05:37 -07:00
cdatapack_dump.c [cdatapack] fix memory handling for cdatapack 2016-08-01 14:11:16 -07:00
cdatapack_get.c [cdatapack] utility to retrieve and checksum the delta chain 2016-08-03 15:29:01 -07:00
cdatapack.c [cdatapack] utility to retrieve and checksum the delta chain 2016-08-03 15:29:01 -07:00
cdatapack.h [cdatapack] fix memory handling for cdatapack 2016-08-01 14:11:16 -07:00
CMakeLists.txt [cdatapack] utility to retrieve and checksum the delta chain 2016-08-03 15:29:01 -07:00
convert.h [remotefilelog] initial checkin of a c datapack parser 2016-08-01 14:05:37 -07:00
null_test.c [remotefilelog] initial checkin of a c datapack parser 2016-08-01 14:05:37 -07:00