2020-07-24 20:44:00 +03:00
|
|
|
#chg-compatible
|
|
|
|
|
|
|
|
$ newserver master
|
2021-06-22 06:31:51 +03:00
|
|
|
$ setconfig extensions.lfs= lfs.url=file:$TESTTMP/lfs-server remotefilelog.lfs=True
|
2020-07-24 20:44:00 +03:00
|
|
|
|
|
|
|
$ clone master shallow --noupdate
|
|
|
|
$ switchrepo shallow
|
2021-06-22 06:31:51 +03:00
|
|
|
$ setconfig extensions.lfs= lfs.url=file:$TESTTMP/lfs-server lfs.threshold=10B remotefilelog.lfs=True
|
2020-07-24 20:44:00 +03:00
|
|
|
|
|
|
|
$ echo "THIS IS AN LFS BLOB" > x
|
|
|
|
$ hg commit -qAm x
|
|
|
|
|
|
|
|
# Make sure that bundle isn't confused by this.
|
|
|
|
$ hg bundle -q -r . $TESTTMP/test-bundle
|
|
|
|
|
|
|
|
$ clone master shallow2 --noupdate
|
|
|
|
$ switchrepo shallow2
|
|
|
|
$ setconfig remotefilelog.lfs=True lfs.url=file:$TESTTMP/lfs-server lfs.threshold=10GB
|
|
|
|
|
2020-07-28 20:49:36 +03:00
|
|
|
$ hg unbundle -q -u $TESTTMP/test-bundle
|
|
|
|
$ cat x
|
|
|
|
THIS IS AN LFS BLOB
|