mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
7f8e4f2439
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
32 lines
883 B
Perl
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}
|