]> khamidou — GitHub mirrors - arcanist.git/commit
Extract configuration read/write methods out of BaseWorlkflow
authorAviv Eyal <avivey@gmail.com>
Fri, 18 Oct 2013 23:10:06 +0000 (16:10 -0700)
committerepriestley <git@epriestley.com>
Fri, 18 Oct 2013 23:10:45 +0000 (16:10 -0700)
commita2285b2b5a2d3804c5ee3d3be528964fedab948c
treeb13847f9aea1b5b2095093b063d15197995456e3
parentb2021586d43549c4c1d06683b66c3e858cdf0fd5
Extract configuration read/write methods out of BaseWorlkflow

Summary:
Create a new class for them, pass instance around as need.

This looks like it's mostly working, but I'd like to replace the various `new ArcanistConfigurationManager()`
calls with something more suitable.

And maybe get a better name for ArcanistConfigurationManager ("Configuration" is already taken).

Test Plan: arc unit --everything, and then some.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran, chad
Differential Revision: https://secure.phabricator.com/D7271
25 files changed:
scripts/arcanist.php
src/__phutil_library_map__.php
src/configuration/ArcanistConfiguration.php
src/configuration/ArcanistConfigurationManager.php [new file with mode: 0644]
src/lint/linter/ArcanistScriptAndRegexLinter.php
src/lint/linter/ArcanistXHPASTLinter.php
src/parser/ArcanistBaseCommitParser.php
src/parser/__tests__/ArcanistBaseCommitParserTestCase.php
src/parser/__tests__/ArcanistBundleTestCase.php
src/repository/api/ArcanistGitAPI.php
src/repository/api/ArcanistRepositoryAPI.php
src/repository/api/__tests__/ArcanistRepositoryAPIStateTestCase.php
src/workflow/ArcanistAliasWorkflow.php
src/workflow/ArcanistBaseWorkflow.php
src/workflow/ArcanistBrowseWorkflow.php
src/workflow/ArcanistGetConfigWorkflow.php
src/workflow/ArcanistInstallCertificateWorkflow.php
src/workflow/ArcanistLandWorkflow.php
src/workflow/ArcanistLintWorkflow.php
src/workflow/ArcanistSetConfigWorkflow.php
src/workflow/ArcanistShellCompleteWorkflow.php
src/workflow/ArcanistSvnHookPreCommitWorkflow.php
src/workflow/ArcanistUnitWorkflow.php
src/workflow/ArcanistUpgradeWorkflow.php
src/workingcopyidentity/ArcanistWorkingCopyIdentity.php