Commit Graph

2 Commits

Author SHA1 Message Date
Saurabh Singh
9f912dccda test-lfs-localstore: make test more robust
Summary:
This test fails on `OSX` with the following error:

```
  $ find $TESTTMP/remote | grep '/../' | sort
+  $TESTTMP/remote
+  $TESTTMP/remote/96
   $TESTTMP/remote/96/85eb765661ea3b95f31e1bb3c3b5501d0c2acdf353feeaa4d8fe32f95f77fb
+  $TESTTMP/remote/ab
   $TESTTMP/remote/ab/861dc170dc2e43224e45278d3d31a675b9ebc34c9b0f48c066ca1eeaed8ee6
```

This commit addresses that issue by only checking for the important paths.

Reviewed By: quark-zju

Differential Revision: D9491589

fbshipit-source-id: 42941b9a7b8ca0f9ac6df1ef85598e78d14e1355
2018-08-23 17:05:39 -07:00
Jun Wu
af0a2ecb8b lfs: add a config to skip writing to localstore
Summary:
We'd like to enable `lfs.url` on hg servers to make blob verification work
without downloading actual blobs. Previously, the LFS local blob store is
always backed by the local filesystem. D6699099 added a simple in-memory store
for another purpose. That in-memory local store fits the
"avoid downloading to disk" purpose. So let's add a config option to use it.

Reviewed By: zhh95

Differential Revision: D9478744

fbshipit-source-id: 69b04cd719cedb77f01b90b4666676c8f38584a1
2018-08-23 11:01:07 -07:00