sapling/hgext3rd/lfs
Jun Wu 00a9465989 lfs: be compatible with filelog metadata
Summary:
This diff changes lfs `revision(raw=False)` output to include hg filelog
metadata. The LFS blob does not contain filelog metadata as before.

This hurts performance if there is a rename, or the binary starts with the
magic `\1\n`. But compatibility is greatly improved - it's now possible to swap
a non-lfs revision with mercurial rename to a lfs revision, and easier to be
compatible with remotefilelog (namely, remotefilelog defers filelog.add until
commit hash is known).

Test Plan: Modified existing test.

Reviewers: #mercurial, durham

Reviewed By: durham

Subscribers: rmcelroy, durham, mjpieters

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

Signature: t1:4906074:1492559513:09b25fc1026d4ce8fd784a044d6724f12e8bda45
2017-04-21 19:56:27 -07:00
..
__init__.py lfs: be compatible with filelog metadata 2017-04-21 19:56:27 -07:00
blobstore.py lfs: cleanup user-facing messages 2017-04-05 15:58:56 -07:00
pointer.py lfs: be compatible with filelog metadata 2017-04-21 19:56:27 -07:00
util.py lfs: cleanup option passing 2017-04-04 16:10:29 -07:00
wrapper.py lfs: be compatible with filelog metadata 2017-04-21 19:56:27 -07:00