From: epriestley Date: Mon, 29 Apr 2013 19:19:15 +0000 (-0700) Subject: Make the behavior of "--load-phutil-library" more explicit X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=270f2402dec49e101cbaec4fb3f5a4548ea5c746;p=arcanist.git Make the behavior of "--load-phutil-library" more explicit Summary: This flag disables normal libraries to make it easier to test library changes. Print that out explicitly. Also update `.arcconfig` to use the modern configuration format. Test Plan: Ran `arc list --trace`, `arc list --load-phutil-library=src --trace`. Reviewers: zeeg, btrahan, vrana Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D5768 --- diff --git a/.arcconfig b/.arcconfig index 02e401e6..fa15cc9d 100644 --- a/.arcconfig +++ b/.arcconfig @@ -3,7 +3,7 @@ "conduit_uri" : "https://secure.phabricator.com/", "lint.engine" : "PhutilLintEngine", "unit.engine" : "PhutilUnitTestEngine", - "phutil_libraries" : { - "arcanist" : "src/" - } + "load" : [ + "src/" + ] } diff --git a/scripts/arcanist.php b/scripts/arcanist.php index 6236c5a6..84f36761 100755 --- a/scripts/arcanist.php +++ b/scripts/arcanist.php @@ -96,6 +96,9 @@ try { // is configured. This is basically a debugging feature to let you force // specific libraries to load regardless of the state of the world. if ($load) { + $console->writeLog( + "Using '--load-phutil-library' flag, configuration will be ignored ". + "and configured libraries will not be loaded."."\n"); // Load the flag libraries. These must load, since the user specified them // explicitly. arcanist_load_libraries(