2015-09-25 23:45:08 +03:00
|
|
|
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
|
2018-06-21 05:27:18 +03:00
|
|
|
#if no-fsmonitor
|
2015-09-25 23:45:08 +03:00
|
|
|
$ 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)
|
2018-06-21 05:27:18 +03:00
|
|
|
#endif
|
2015-09-25 23:45:08 +03:00
|
|
|
|
|
|
|
$ rm -rf .hg/cache .hg/blackbox.log
|
|
|
|
$ hg tags --config perftweaks.disabletags=True
|
|
|
|
tip 1:2cc13e58bcd8
|
|
|
|
$ hg blackbox | grep tag
|
2017-12-01 22:52:14 +03:00
|
|
|
*> tags* (glob)
|
2017-03-21 19:18:01 +03:00
|
|
|
*> tags --config 'perftweaks.disabletags=True' exited 0 after * seconds (glob)
|
2015-10-07 22:29:56 +03:00
|
|
|
|
|
|
|
$ cd ..
|
|
|
|
|
2016-10-25 19:03:15 +03:00
|
|
|
#if osx
|
|
|
|
#else
|
2015-10-07 22:29:56 +03:00
|
|
|
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
|
2015-11-09 22:33:38 +03:00
|
|
|
$ cd ..
|
2016-10-25 19:03:15 +03:00
|
|
|
#endif
|
2015-11-09 22:33:38 +03:00
|
|
|
|
2017-12-05 22:53:07 +03:00
|
|
|
Test avoiding calculating head changes during commit
|
|
|
|
|
|
|
|
$ hg init branchatcommit
|
|
|
|
$ cd branchatcommit
|
|
|
|
$ hg debugdrawdag<<'EOS'
|
|
|
|
> B
|
|
|
|
> |
|
|
|
|
> A
|
|
|
|
> EOS
|
|
|
|
$ hg up -q A
|
|
|
|
$ echo C > C
|
|
|
|
$ hg commit -m C -A C
|
|
|
|
$ hg up -q A
|
|
|
|
$ echo D > D
|
2018-04-14 01:40:57 +03:00
|
|
|
$ hg commit -m D -A D
|
2017-12-05 22:53:07 +03:00
|
|
|
|