]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Make the behavior of "--load-phutil-library" more explicit
authorepriestley <git@epriestley.com>
Mon, 29 Apr 2013 19:19:15 +0000 (12:19 -0700)
committerepriestley <git@epriestley.com>
Mon, 29 Apr 2013 19:19:15 +0000 (12:19 -0700)
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

.arcconfig
scripts/arcanist.php

index 02e401e6f4a0416d492bf5d620ed5ae740d77f56..fa15cc9de386b6adbc18615f434225ab92862d42 100644 (file)
@@ -3,7 +3,7 @@
   "conduit_uri" : "https://secure.phabricator.com/",
   "lint.engine" : "PhutilLintEngine",
   "unit.engine" : "PhutilUnitTestEngine",
-  "phutil_libraries" : {
-    "arcanist" : "src/"
-  }
+  "load" : [
+    "src/"
+  ]
 }
index 6236c5a6161e67fd49d1c94901e4dcc2db272b66..84f367618f42926d539c7c0e50c70c4e69ffdecc 100755 (executable)
@@ -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(