sapling/tests/integration/test-bonsai-verify.t
Rain ⁣ 2b4c0f14a1 bonsai_verify: init cachelib before opening repo
Summary: ugh, yet another case of a hidden dependency.

Reviewed By: StanislavGlebik

Differential Revision: D9318498

fbshipit-source-id: 5fcd25081b5033cbef9c5f137e616348c5d6ced9
2018-08-15 23:36:18 -07:00

54 lines
950 B
Perl

$ . $TESTDIR/library.sh
setup configuration
$ setup_config_repo
$ cd $TESTTMP
setup common configuration
$ cat >> $HGRCPATH <<EOF
> [ui]
> ssh="$DUMMYSSH"
> EOF
setup repo
$ hg init repo-hg
Init treemanifest and remotefilelog
$ cd repo-hg
$ cat >> .hg/hgrc <<EOF
> [extensions]
> treemanifest=
> remotefilelog=
> [treemanifest]
> server=True
> [remotefilelog]
> server=True
> shallowtrees=True
> EOF
$ touch a
$ hg add a
$ hg ci -ma
$ hg log
changeset: 0:3903775176ed
tag: tip
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: a
$ hg log -r. -T '{node}\n'
3903775176ed42b1458a6281db4a0ccf4d9f287a
blobimport
$ cd ..
$ blobimport repo-hg/.hg repo
smoke test to ensure bonsai_verify works
$ bonsai_verify repo 3903775176ed42b1458a6281db4a0ccf4d9f287a
summary:
* INFO 100.00% valid, total: 1, valid: 1, errors: 0, ignored: 0 (glob)