]> khamidou — GitHub mirrors - arcanist.git/commit
Make Arcanist workflow names explicit
authorepriestley <git@epriestley.com>
Wed, 17 Oct 2012 15:35:03 +0000 (08:35 -0700)
committerepriestley <git@epriestley.com>
Wed, 17 Oct 2012 15:35:03 +0000 (08:35 -0700)
commit4c476c0201d3e9d9fbb4254028cb06c817ca3c22
treea4b9fd9c87d0c5bae9e31a90c4fe2d378888e4e2
parent2d269aefedce5a9a17cbab167f66eaa94a35d88a
Make Arcanist workflow names explicit

Summary:
Currently, adding a new workflow requires you to override ArcanistConfiguration, which is messy. Instead, just load everything that extends ArcanistBaseWorkflow.

Remove all the rules tying workflow names to class names through arcane incantations.

This has a very small performance cost in that we need to load every Workflow class every time now, but we don't hit __init__ and such anymore and it was pretty negligible on my machine (98ms vs 104ms or something).

Test Plan: Ran "arc help", "arc which", "arc diff", etc.

Reviewers: edward, vrana, btrahan

Reviewed By: edward

CC: aran, zeeg
Differential Revision: https://secure.phabricator.com/D3691
36 files changed:
src/configuration/ArcanistConfiguration.php
src/workflow/ArcanistAliasWorkflow.php
src/workflow/ArcanistAmendWorkflow.php
src/workflow/ArcanistAnoidWorkflow.php
src/workflow/ArcanistBaseWorkflow.php
src/workflow/ArcanistBranchWorkflow.php
src/workflow/ArcanistCallConduitWorkflow.php
src/workflow/ArcanistCloseRevisionWorkflow.php
src/workflow/ArcanistCloseWorkflow.php
src/workflow/ArcanistCommitWorkflow.php
src/workflow/ArcanistCoverWorkflow.php
src/workflow/ArcanistDiffWorkflow.php
src/workflow/ArcanistDownloadWorkflow.php
src/workflow/ArcanistExportWorkflow.php
src/workflow/ArcanistFlagWorkflow.php
src/workflow/ArcanistGetConfigWorkflow.php
src/workflow/ArcanistGitHookPreReceiveWorkflow.php
src/workflow/ArcanistHelpWorkflow.php
src/workflow/ArcanistInlinesWorkflow.php
src/workflow/ArcanistInstallCertificateWorkflow.php
src/workflow/ArcanistLandWorkflow.php
src/workflow/ArcanistLiberateWorkflow.php
src/workflow/ArcanistLintWorkflow.php
src/workflow/ArcanistListWorkflow.php
src/workflow/ArcanistMarkCommittedWorkflow.php
src/workflow/ArcanistPasteWorkflow.php
src/workflow/ArcanistPatchWorkflow.php
src/workflow/ArcanistSetConfigWorkflow.php
src/workflow/ArcanistShellCompleteWorkflow.php
src/workflow/ArcanistSvnHookPreCommitWorkflow.php
src/workflow/ArcanistTasksWorkflow.php
src/workflow/ArcanistTodoWorkflow.php
src/workflow/ArcanistUnitWorkflow.php
src/workflow/ArcanistUpgradeWorkflow.php
src/workflow/ArcanistUploadWorkflow.php
src/workflow/ArcanistWhichWorkflow.php