mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
24341537bf
Summary: Because we now prune in parallel to priming the cache, we no longer need the prune at the end. The only scenario where we still need to prune is where we never enter the priming loop, i.e., when the revset is empty. Depends on D3545267, D3544997 Test Plan: since we don't prune in many circumstances any more, the test output is slighty affected. otherwise, the tests pass. Reviewers: #fastmanifest, durham Reviewed By: durham Subscribers: durham, mitrandir, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D3547219 Signature: t1:3547219:1468373775:e4535e3a66fb362385a23b992749eb7c3fcf7ea1
57 lines
1.5 KiB
Raku
57 lines
1.5 KiB
Raku
Setup
|
|
|
|
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
|
$ export PYTHONPATH
|
|
|
|
Check diagnosis, debugging information
|
|
1) Setup configuration
|
|
$ mkcommit() {
|
|
> echo "$1" > "$1"
|
|
> hg add "$1"
|
|
> echo "add $1" > msg
|
|
> echo "" >> msg
|
|
> hg ci -l msg
|
|
> }
|
|
|
|
2) Set up the repo
|
|
|
|
$ mkdir cachetesting
|
|
$ cd cachetesting
|
|
$ hg init
|
|
$ cat >> .hg/hgrc << EOF
|
|
> [extensions]
|
|
> fastmanifest=
|
|
> blackbox=
|
|
> [blackbox]
|
|
> maxfiles=1
|
|
> maxsize=5242880
|
|
> track=fastmanifest
|
|
> [fastmanifest]
|
|
> cacheonchange=True
|
|
> cachecutoffdays=-1
|
|
> randomorder=False
|
|
> EOF
|
|
|
|
$ mkcommit a
|
|
$ mkcommit b
|
|
$ mkcommit c
|
|
$ mkcommit d
|
|
$ cat .hg/blackbox.log | grep "FM" | sed "s/.*)>//g" | grep -v "running"
|
|
FM: caching trigger: commit
|
|
FM: triggering caching for $TESTTMP/cachetesting
|
|
FM: trying to cache [0]
|
|
FM: cached(rev,man) 0->a0c8bcbbb45c63b90b70ad007bf38961f64f2af0
|
|
FM: caching trigger: commit
|
|
FM: triggering caching for $TESTTMP/cachetesting
|
|
FM: trying to cache [1, 0]
|
|
FM: cached(rev,man) 1->a539ce0c1a22b0ecf34498f9f5ce8ea56df9ecb7
|
|
FM: skip(rev, man) 0->a0c8bcbbb45c63b90b70ad007bf38961f64f2af0
|
|
FM: caching trigger: commit
|
|
FM: triggering caching for $TESTTMP/cachetesting
|
|
FM: trying to cache [2, 1, 0]
|
|
FM: cached(rev,man) 2->e3738bf5439958f89499a656982023aba57b076e
|
|
FM: skip(rev, man) 1->a539ce0c1a22b0ecf34498f9f5ce8ea56df9ecb7
|
|
FM: skip(rev, man) 0->a0c8bcbbb45c63b90b70ad007bf38961f64f2af0
|
|
FM: caching trigger: commit
|
|
FM: triggering caching for $TESTTMP/cachetesting
|