Commit 8a1bd857 authored by Xavier Deguillard's avatar Xavier Deguillard Committed by Facebook GitHub Bot

revisionstore: add a LFS remote store

Summary:
This enables fetching blobs from the LFS server. For now, this is limited to
fetching them, but the protocol specify ways to also upload. That second part
will matter for commit cloud and when pushing code to the server.

One caveat to this code is that the LFS server is not mocked in tests, and thus
requests are done directly to the server. I chose very small blobs to limit the
disruption to the server, by setting a test specific user-agent, we should be
able to monitor traffic due to tests and potentially rate limit it.

Reviewed By: DurhamG

Differential Revision: D20445628

fbshipit-source-id: beb3acb3f69dd27b54f8df7ccb95b04192deca30
parent 33849b67
...@@ -48,7 +48,7 @@ fbcode/tools/lfs = tools/lfs ...@@ -48,7 +48,7 @@ fbcode/tools/lfs = tools/lfs
[shipit.strip] [shipit.strip]
^fbcode/eden/fs/eden-config\.h$ ^fbcode/eden/fs/eden-config\.h$
^fbcode/eden/hg/.*$ ^fbcode/eden/hg/.*$
^fbcode/eden/mononoke/.*$ ^fbcode/eden/mononoke/(?!lfs_protocol)
[cmake.defines.all(fb=on,os=windows)] [cmake.defines.all(fb=on,os=windows)]
INSTALL_PYTHON_LIB=ON INSTALL_PYTHON_LIB=ON
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment