sapling/cstore
Jun Wu 4240bd017e remotefilelog: let content stores support metadata
Summary:
This diffs add a `getmeta` method to all content stores. The cdatapack code is
modified to pass the tests, it needs further change to support `getmeta`.

The datapack format is bumped to v1 from v0. For v1, we append a `metadata`
dict at the end of each revision. The dict is currently used to store revlog
flags and rawsize of raw revlog fulltext. In the future we can put more data
like a second hash etc, without changing API or format again.

This diff focuses on correctness. A datapack caching layer to speed up
`getmeta` will be added later.

Tests are updated since we write new v1 packfile now and the format change
leads to different content and packfile names.

`Makefile`, `ls-l.py` are added to make tests easier to maintain.

Test Plan: Updated existing tests.

Reviewers: #mercurial, rmcelroy, durham

Reviewed By: durham

Subscribers: rmcelroy, mjpieters

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

Signature: t1:4903917:1493255844:7ef5d487096cd2f78f2aaae672a68d49f33632ee
2017-04-26 19:50:36 -07:00
..
bitmanipulation.h cstore: add mpatch code from core 2017-02-23 14:03:03 -08:00
compat.h cstore: add mpatch code from core 2017-02-23 14:03:03 -08:00
datapackstore.cpp portability: use COMPOUND_LITERAL macro in place of actual compound literals 2017-04-06 09:34:40 -07:00
datapackstore.h c-extensions: fixup some compiler/environment portability concerns 2017-04-12 16:34:53 -07:00
key.h c-extensions: fixup some compiler/environment portability concerns 2017-04-12 16:34:53 -07:00
match.h treemanifest: support matcher in diff 2017-03-12 12:49:18 -07:00
mpatch.c cstore: add mpatch code from core 2017-02-23 14:03:03 -08:00
mpatch.h cstore: add mpatch code from core 2017-02-23 14:03:03 -08:00
py-cdatapack.h remotefilelog: let content stores support metadata 2017-04-26 19:50:36 -07:00
py-cstore.cpp cstore: implement UnionDatapackStore 2017-02-23 14:03:03 -08:00
py-datapackstore.h cstore: move pythonutil to cstore 2017-03-07 11:39:46 -08:00
py-structs.h cstore: move uniondatapackstore holder to be a shared_ptr 2017-02-23 14:03:04 -08:00
py-treemanifest.h treemanifest: ConstantStringRef -> shared_ptr<string> 2017-04-25 15:44:55 -07:00
pythonutil.cpp treemanifest: ConstantStringRef -> shared_ptr<string> 2017-04-25 15:44:55 -07:00
pythonutil.h cstore: move pythonutil to cstore 2017-03-07 11:39:46 -08:00
store.h cstore: centos6 doesn't know about nullptr 2017-04-26 11:09:59 -07:00
uniondatapackstore.cpp treemanifest: ConstantStringRef -> shared_ptr<string> 2017-04-25 15:44:55 -07:00
uniondatapackstore.h cstore: implement markForRefresh on cdatapackstore 2017-03-01 16:55:18 -08:00