2016-04-27 19:27:56 +03:00
|
|
|
$ cat >> $HGRCPATH << EOF
|
|
|
|
> [extensions]
|
2018-01-10 19:39:19 +03:00
|
|
|
> arcconfig=$TESTDIR/../hgext/extlib/phabricator/arcconfig.py
|
2016-04-27 19:27:56 +03:00
|
|
|
> 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}
|
|
|
|
|