mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
52 lines
1.3 KiB
Perl
52 lines
1.3 KiB
Perl
$ extpath=$(dirname $TESTDIR)
|
|
$ cp $extpath/perftweaks.py $TESTTMP # use $TESTTMP substitution in message
|
|
$ cat >> $HGRCPATH << EOF
|
|
> [extensions]
|
|
> perftweaks=$TESTTMP/perftweaks.py
|
|
> EOF
|
|
|
|
Test disabling the tag cache
|
|
$ hg init tagcache
|
|
$ cd tagcache
|
|
$ cat >> .hg/hgrc <<EOF
|
|
> [extensions]
|
|
> blackbox=
|
|
> EOF
|
|
$ touch a && hg add -q a
|
|
$ hg commit -qm "Foo"
|
|
$ hg tag foo
|
|
|
|
$ rm -rf .hg/cache .hg/blackbox.log
|
|
$ hg tags
|
|
tip 1:2cc13e58bcd8
|
|
foo 0:be5a2292aa62
|
|
$ hg blackbox | grep tag
|
|
*> tags (glob)
|
|
*> writing * bytes to cache/hgtagsfnodes1 (glob)
|
|
*> writing .hg/cache/tags2-visible with 1 tags (glob)
|
|
*> tags exited 0 after * seconds (glob)
|
|
|
|
$ rm -rf .hg/cache .hg/blackbox.log
|
|
$ hg tags --config perftweaks.disabletags=True
|
|
tip 1:2cc13e58bcd8
|
|
$ hg blackbox | grep tag
|
|
*> tags (glob)
|
|
*> tags --config perftweaks.disabletags=True exited 0 after * seconds (glob)
|
|
|
|
$ cd ..
|
|
|
|
Test disabling the case conflict check (only fails on case sensitive systems)
|
|
$ hg init casecheck
|
|
$ cd casecheck
|
|
$ cat >> .hg/hgrc <<EOF
|
|
> [perftweaks]
|
|
> disablecasecheck=True
|
|
> EOF
|
|
$ touch a
|
|
$ hg add a
|
|
$ hg commit -m a
|
|
$ touch A
|
|
$ hg add A
|
|
warning: possible case-folding collision for A
|
|
$ hg commit -m A
|