sapling/eden/scm/tests/test-fb-ext-arcconfig.t
Saul Gutierrez 7f8e4f2439 hgext: rename ext to hgext
Summary: We since internally we will start to refer to `hg` as `sapling`, the `hgext` directory does not make that much sense now. This diff renames the `hgext` directory to `ext`, as well as all the references to it.

Reviewed By: jordanwebster

Differential Revision: D38914577

fbshipit-source-id: 2d01fc9ead26f309d9021ffe34e0812e0f2a13b7
2022-08-23 15:19:05 -07:00

32 lines
883 B
Perl

#debugruntest-compatible
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
$ cat >> $HGRCPATH << 'EOF'
> [extensions]
> arcconfig=$TESTDIR/../edenscm/ext/extlib/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}