mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
ee7f2e0275
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
30 lines
602 B
Perl
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
|