diff tests/test-lfs-serve.t @ 37517:491edf2435a0

lfs: add the ability to disable the usercache While the usercache is important for real world uses, I've been tripped up more than a couple of times by it in tests- thinking a file was being downloaded, but it was simply linked from the local cache. The syntax for setting it is the same as for setting a null remote endpoint, and like that endpoint, is left undocumented. This may or may not be a useful feature in the real world (I'd expect any sane filesystem to support hardlinks at this point).
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 07 Apr 2018 22:40:11 -0400
parents f4e84dfc06fd
children 092eff6833a7
line wrap: on
line diff
--- a/tests/test-lfs-serve.t	Tue Apr 10 22:57:55 2018 -0400
+++ b/tests/test-lfs-serve.t	Sat Apr 07 22:40:11 2018 -0400
@@ -35,6 +35,7 @@
   $ cat >> $HGRCPATH <<EOF
   > [lfs]
   > url=file:$TESTTMP/dummy-remote/
+  > usercache = null://
   > threshold=10
   > [web]
   > allow_push=*