sapling/tests/integration
Stanislau Hlebik 5961c7558a mononoke: filelog metadata problem fix
Summary:
Mercurial filelog entries may have metadata fields in the beginning, usually used to track copies/renames. Previously mononoke eden server returned this metadata as part of the file blob.
This diff changes it. Now `get_content()` method returns file content without metadata, and to make it consistent, both `get_content()` of the blobrepo and revlog repo do the same.

This decision certainly has it's tradeoffs, because now it's more difficult to get metadata (`get_raw_content` needs to be used).
But we'll probably change how metadata is stored anyway, that's why I think changing `get_content` method is fine.

This diff also cleans up server/src/main.rs file, because previously it had to strip metadata itself.
Also diff fixes problem in metadata parsing - it previously failed if file is less than 2 bytes

Reviewed By: farnz

Differential Revision: D5901476

fbshipit-source-id: f3ade0179710352590068c238e6a733aab68a512
2017-09-26 00:36:55 -07:00
..
third_party mononoke: add hghave 2017-09-26 00:36:55 -07:00
integration_runner.py Initial commit 2017-07-27 18:00:19 -07:00
library.sh server: read config repo instead of command line arguments to start the server 2017-09-22 09:22:18 -07:00
test-eden-server.t mononoke: filelog metadata problem fix 2017-09-26 00:36:55 -07:00
test-init.t server: read config repo instead of command line arguments to start the server 2017-09-22 09:22:18 -07:00