sapling/tests/test-fb-hgext-fastmanifest-permission.t
Jun Wu 1cde63d99c codemod: drop hacks changing PYTHONPATH in tests
Summary:
Now they are unnecessary since `run-tests.py` will set up `PYTONPATH`
correctly.

Differential Revision: D6865042

fbshipit-source-id: ca95314f725968e14349a9d916434aa832c596f9
2018-04-13 21:51:00 -07:00

46 lines
751 B
Perl

Setup
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=
> [fastmanifest]
> cachecutoffdays=-1
> randomorder=False
> EOF
$ mkcommit a
$ mkcommit b
$ mkcommit c
$ mkcommit d
$ mkcommit e
$ deauthorize() {
> chmod 100 .hg
> }
$ authorize() {
> chmod 755 .hg
> }
$ deauthorize
$ hg debugcachemanifest -a
warning: not using fastmanifest
(make sure that .hg/store is writeable)
$ authorize
$ hg debugcachemanifest -a