mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
1cde63d99c
Summary: Now they are unnecessary since `run-tests.py` will set up `PYTONPATH` correctly. Differential Revision: D6865042 fbshipit-source-id: ca95314f725968e14349a9d916434aa832c596f9
46 lines
751 B
Perl
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
|
|
|