Mercurial > evolve
view tests/test-sqlite3-permissions.t @ 5533:044ce00dfa88 stable
tests: use the modern config setting to enable evolution in topic tests
When adding `hg pick --config extensions.evolve=` to test-topic-dest.t to
investigate issue6406, it failed with `abort: unknown command 'pick'`. This is
a manifestation of issue6039. I made several attempts at determining the root
cause, and while I'm still worried about *why* a config setting can cause the
extension to fail to fully initialize, there are some topic bugs to cleanup and
I don't feel like spending more time on this.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 05 Sep 2020 00:07:01 -0400 |
parents | 2570d2d4a268 |
children |
line wrap: on
line source
#require unix-permissions Test that sqlite3 cache files inherit the permissions of the .hg directory like other cache files. $ . $TESTDIR/testlib/common.sh $ cat << EOF >> $HGRCPATH > [extensions] > evolve = > EOF $ hg init test $ cd test $ chmod 700 .hg $ hg debugupdatecache $ ls -l .hg/cache/evoext_*.sqlite -rw------- * .hg/cache/evoext_obshashrange_v2.sqlite (glob) -rw------- * .hg/cache/evoext_stablerange_v2.sqlite (glob) $ rm -r .hg/cache $ chmod 770 .hg $ hg debugupdatecache $ ls -l .hg/cache/evoext_*.sqlite -rw-rw---- * .hg/cache/evoext_obshashrange_v2.sqlite (glob) -rw-rw---- * .hg/cache/evoext_stablerange_v2.sqlite (glob) $ rm -r .hg/cache $ chmod 774 .hg $ hg debugupdatecache $ ls -l .hg/cache/evoext_*.sqlite -rw-rw-r-- * .hg/cache/evoext_obshashrange_v2.sqlite (glob) -rw-rw-r-- * .hg/cache/evoext_stablerange_v2.sqlite (glob)