]> khamidou — GitHub mirrors - arcanist.git/commit
[arcanist] add system arc config file
authordschleimer <dschleimer@fb.com>
Mon, 25 Jun 2012 22:14:11 +0000 (15:14 -0700)
committerdschleimer <dschleimer@fb.com>
Mon, 25 Jun 2012 22:14:11 +0000 (15:14 -0700)
commit82d05fee9f5b7e1cd90a09dee0afc64cbc84dd2c
treeea0d5d69d0f937a86016b847b36316083f54f786
parente1371493bef868bd3593632ef493c47e24135c00
[arcanist] add system arc config file

Summary:
Adds a system arc config file with precedence below the user config
file, both to ArcanistWorkingCopyIdentity::readConfigFromAnySource()
and to base commit resolution.

Test Plan:
[14:48:45 Mon Jun 25 2012] dschleimer@dev4022.snc6 ~/devtools/arcanist
arcanist system_config 21245 $ cat /etc/arcconfig
{
    "base": "literal:foobar"
}
[14:52:31 Mon Jun 25 2012] dschleimer@dev4022.snc6 ~/devtools/arcanist
arcanist system_config 21246 $ ./bin/arc get-config base
(system) base = literal:foobar
(global) base =

[14:52:39 Mon Jun 25 2012] dschleimer@dev4022.snc6 ~/devtools/arcanist
arcanist system_config 21247 $ ./bin/arc which --show-base --base 'arc:system'
foobar

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Maniphest Tasks: T1233

Differential Revision: https://secure.phabricator.com/D2854
src/parser/ArcanistBaseCommitParser.php
src/repository/api/ArcanistRepositoryAPI.php
src/workflow/ArcanistBaseWorkflow.php
src/workflow/ArcanistGetConfigWorkflow.php
src/workingcopyidentity/ArcanistWorkingCopyIdentity.php