sapling/tests/test-fb-hgext-remotefilelog-archive.t
Durham Goode ee7f2e0275 archive: prefetch remotefilelog files before executing archive
Summary:
Currently archive is almost useless because it fetches each file
one-by-one. Let's add prefetching.

Differential Revision: D14460880

fbshipit-source-id: 1f06e1ac9d03aae3ab27d3064f9fe6141051be06
2019-03-14 14:57:50 -07:00

30 lines
602 B
Perl

$ . "$TESTDIR/library.sh"
$ hginit master
$ cd master
$ cat >> .hg/hgrc <<EOF
> [remotefilelog]
> server=True
> EOF
$ echo x > x
$ hg commit -qAm x
$ echo y >> x
$ hg commit -qAm y
$ mkdir dir
$ echo z >> dir/z
$ hg commit -qAm z
$ echo z >> dir/z2
$ hg commit -qAm z2
$ cd ..
$ hgcloneshallow ssh://user@dummy/master shallow -q
3 files fetched over 1 fetches - (3 misses, 0.00% hit ratio) over 0.00s
$ cd shallow
Test blame
$ clearcache
$ hg archive -r tip -t tar myarchive.tar
3 files fetched over 1 fetches - (3 misses, 0.00% hit ratio) over 0.00s