]> khamidou — GitHub mirrors - arcanist.git/commit
Improve 'arc get-config', 'arc set-config' and show more config info with --trace
authorepriestley <git@epriestley.com>
Tue, 20 May 2014 18:34:28 +0000 (11:34 -0700)
committerepriestley <git@epriestley.com>
Tue, 20 May 2014 18:34:28 +0000 (11:34 -0700)
commit104219dd62eec7ff4217b00ad3134cf307554554
tree93c08f36679fbb0584bd869d58c684995a1cbf82
parent03ea43646a38aa4a2058649950d5f39c25f9888e
Improve 'arc get-config', 'arc set-config' and show more config info with --trace

Summary:
Fixes T4952. Several issues:

  - You review configuration values with `arc set-config --show`. This makes no sense and never has, I think it just predated `arc get-config` or was easier or something.
    - Instead, review values with `arc get-config` and review details with `arc get-config --verbose`.
  - Show better and more detailed information about all config sources.
  - Establish and show default values from a new "default" source.
  - With `--trace` include more information about attempts to read configuration files.

Test Plan:
Ran `arc get-config --trace --verbose` in various working directories and received sensible-looking output.

{F156247}

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4952

Differential Revision: https://secure.phabricator.com/D9172
src/configuration/ArcanistConfigurationManager.php
src/configuration/ArcanistSettings.php
src/workflow/ArcanistGetConfigWorkflow.php
src/workflow/ArcanistSetConfigWorkflow.php
src/workingcopyidentity/ArcanistWorkingCopyIdentity.php