| 1 |
#require no-windows |
| 2 |
|
| 3 |
$ . "$TESTDIR/remotefilelog-library.sh" |
| 4 |
|
| 5 |
$ hg init master |
| 6 |
$ cd master |
| 7 |
$ cat >> .hg/hgrc <<EOF |
| 8 |
> [remotefilelog] |
| 9 |
> server=True |
| 10 |
> serverexpiration=-1 |
| 11 |
> EOF |
| 12 |
$ echo x > x |
| 13 |
$ hg commit -qAm x |
| 14 |
$ echo y > y |
| 15 |
$ hg commit -qAm y |
| 16 |
$ echo z > z |
| 17 |
$ hg commit -qAm z |
| 18 |
$ cd .. |
| 19 |
|
| 20 |
$ hgcloneshallow ssh://user@dummy/master shallow -q |
| 21 |
3 files fetched over 1 fetches - (3 misses, 0.00% hit ratio) over *s (glob) |
| 22 |
|
| 23 |
# Compute keepset for 0th and 2nd commit, which implies that we do not process |
| 24 |
# the 1st commit, therefore we diff 2nd manifest with the 0th manifest and |
| 25 |
# populate the keepkeys from the diff |
| 26 |
$ cd shallow |
| 27 |
$ cat >> .hg/hgrc <<EOF |
| 28 |
> [remotefilelog] |
| 29 |
> pullprefetch=0+2 |
| 30 |
> EOF |
| 31 |
$ hg debugkeepset |
| 32 |
|
| 33 |
# Compute keepset for all commits, which implies that we only process deltas of |
| 34 |
# manifests of commits 1 and 2 and therefore populate the keepkeys from deltas |
| 35 |
$ cat >> .hg/hgrc <<EOF |
| 36 |
> [remotefilelog] |
| 37 |
> pullprefetch=all() |
| 38 |
> EOF |
| 39 |
$ hg debugkeepset |