mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
27 lines
660 B
Perl
27 lines
660 B
Perl
|
$ cat >> $HGRCPATH << EOF
|
||
|
> [extensions]
|
||
|
> arcconfig=$TESTDIR/../phabricator/arcconfig.py
|
||
|
> EOF
|
||
|
|
||
|
Sanity check expectations when there is no arcconfig
|
||
|
|
||
|
$ hg init repo
|
||
|
$ cd repo
|
||
|
$ hg debugarcconfig
|
||
|
abort: no .arcconfig found
|
||
|
[255]
|
||
|
|
||
|
Show that we can locate and reflect the contents of the .arcconfig from
|
||
|
the repo dir
|
||
|
|
||
|
$ echo '{"hello": "world"}' > .arcconfig
|
||
|
$ hg debugarcconfig
|
||
|
{"_arcconfig_path": "$TESTTMP/repo", "hello": "world"}
|
||
|
|
||
|
We expect to see the combination of the user arcrc and the repo rc
|
||
|
|
||
|
$ echo '{"user": true}' > $HOME/.arcrc
|
||
|
$ hg debugarcconfig
|
||
|
{"_arcconfig_path": "$TESTTMP/repo", "hello": "world", "user": true}
|
||
|
|