2011-01-10 00:22:25 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2012-05-30 23:22:59 +02:00
|
|
|
* This file is automatically generated. Use 'arc liberate' to rebuild it.
|
2011-01-10 00:22:25 +01:00
|
|
|
* @generated
|
2012-05-30 23:22:59 +02:00
|
|
|
* @phutil-library-version 2
|
2011-01-10 00:22:25 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
phutil_register_library_map(array(
|
2012-05-30 23:22:59 +02:00
|
|
|
'__library_version__' => 2,
|
2011-01-10 00:22:25 +01:00
|
|
|
'class' =>
|
|
|
|
array(
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistAliasWorkflow' => 'workflow/ArcanistAliasWorkflow.php',
|
|
|
|
'ArcanistAmendWorkflow' => 'workflow/ArcanistAmendWorkflow.php',
|
2012-07-21 11:09:21 +02:00
|
|
|
'ArcanistAnoidWorkflow' => 'workflow/ArcanistAnoidWorkflow.php',
|
2013-02-11 23:12:10 +01:00
|
|
|
'ArcanistApacheLicenseLinter' => 'lint/linter/ArcanistApacheLicenseLinter.php',
|
2012-11-03 02:09:38 +01:00
|
|
|
'ArcanistArcanistLinterTestCase' => 'lint/linter/__tests__/ArcanistArcanistLinterTestCase.php',
|
Add a DSL for selecting base commits
Summary:
New optional mode. If you set 'base' in local, project or global config or pass '--base' to 'arc diff' or 'arc which', it switches to DSL mode.
In DSL mode, lists of rules from args, local, project and global config are resolved, in that order. Rules can manipulate the rule machine or resolve into actual commits. Provides support for some 'arc' rules (mostly machine manipulation) and 'git' rules (symbolic ref and merge-base).
Test Plan:
Ran unit tests. Also:
```$ arc which --show-base --base 'arc:prompt'
Against which commit? HEAD
HEAD
$ arc which --show-base --base 'git:HEAD'
HEAD
$ arc which --show-base --base 'git:fake'
Usage Exception: None of the rules in your 'base' configuration matched a valid commit. Adjust rules or specify which commit you want to use explicitly.
$ arc which --show-base --base 'git:origin/master'
origin/master
$ arc which --show-base --base 'git:upstream'
Usage Exception: None of the rules in your 'base' configuration matched a valid commit. Adjust rules or specify which commit you want to use explicitly.
$ arc which --show-base --base 'literal:derp'
derp
$ arc which --show-base --base 'arc:halt'
Usage Exception: None of the rules in your 'base' configuration matched a valid commit. Adjust rules or specify which commit you want to use explicitly.
$ arc set-config --local base git:origin/master
Set key 'base' = 'git:origin/master' in local config.
$ arc which --show-base
origin/master
$ arc which --show-base --base 'git:HEAD^'
HEAD^
$ arc which --show-base --base 'arc:yield, git:HEAD^'
origin/master
$ arc which --show-base --base 'arc:global, git:HEAD^'
HEAD^
$ arc which --show-base --base 'arc:global, git:merge-base(origin/master)'
3f4f8992fba8d1f142974da36a82bae900e247c0```
Reviewers: dschleimer, vrana
Reviewed By: dschleimer
CC: aran
Maniphest Tasks: T1233
Differential Revision: https://secure.phabricator.com/D2748
2012-06-15 23:01:28 +02:00
|
|
|
'ArcanistBaseCommitParser' => 'parser/ArcanistBaseCommitParser.php',
|
|
|
|
'ArcanistBaseCommitParserTestCase' => 'parser/__tests__/ArcanistBaseCommitParserTestCase.php',
|
2013-01-28 02:16:50 +01:00
|
|
|
'ArcanistBaseTestResultParser' => 'unit/engine/ArcanistBaseTestResultParser.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistBaseUnitTestEngine' => 'unit/engine/ArcanistBaseUnitTestEngine.php',
|
|
|
|
'ArcanistBaseWorkflow' => 'workflow/ArcanistBaseWorkflow.php',
|
2013-01-29 07:03:03 +01:00
|
|
|
'ArcanistBaseXHPASTLinter' => 'lint/linter/ArcanistBaseXHPASTLinter.php',
|
2013-01-31 02:33:32 +01:00
|
|
|
'ArcanistBookmarkWorkflow' => 'workflow/ArcanistBookmarkWorkflow.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistBranchWorkflow' => 'workflow/ArcanistBranchWorkflow.php',
|
2012-12-09 23:09:35 +01:00
|
|
|
'ArcanistBrowseWorkflow' => 'workflow/ArcanistBrowseWorkflow.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistBundle' => 'parser/ArcanistBundle.php',
|
|
|
|
'ArcanistBundleTestCase' => 'parser/__tests__/ArcanistBundleTestCase.php',
|
|
|
|
'ArcanistCallConduitWorkflow' => 'workflow/ArcanistCallConduitWorkflow.php',
|
|
|
|
'ArcanistCapabilityNotSupportedException' => 'workflow/exception/ArcanistCapabilityNotSupportedException.php',
|
2012-05-30 23:22:59 +02:00
|
|
|
'ArcanistChooseInvalidRevisionException' => 'exception/ArcanistChooseInvalidRevisionException.php',
|
|
|
|
'ArcanistChooseNoRevisionsException' => 'exception/ArcanistChooseNoRevisionsException.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistCloseRevisionWorkflow' => 'workflow/ArcanistCloseRevisionWorkflow.php',
|
|
|
|
'ArcanistCloseWorkflow' => 'workflow/ArcanistCloseWorkflow.php',
|
|
|
|
'ArcanistCommentRemover' => 'parser/ArcanistCommentRemover.php',
|
|
|
|
'ArcanistCommentRemoverTestCase' => 'parser/__tests__/ArcanistCommentRemoverTestCase.php',
|
|
|
|
'ArcanistCommitWorkflow' => 'workflow/ArcanistCommitWorkflow.php',
|
|
|
|
'ArcanistConduitLinter' => 'lint/linter/ArcanistConduitLinter.php',
|
2012-05-30 23:22:59 +02:00
|
|
|
'ArcanistConfiguration' => 'configuration/ArcanistConfiguration.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistCoverWorkflow' => 'workflow/ArcanistCoverWorkflow.php',
|
2013-01-07 17:16:45 +01:00
|
|
|
'ArcanistCppcheckLinter' => 'lint/linter/ArcanistCppcheckLinter.php',
|
2013-01-05 03:59:38 +01:00
|
|
|
'ArcanistCpplintLinter' => 'lint/linter/ArcanistCpplintLinter.php',
|
|
|
|
'ArcanistCpplintLinterTestCase' => 'lint/linter/__tests__/ArcanistCpplintLinterTestCase.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistDiffChange' => 'parser/diff/ArcanistDiffChange.php',
|
|
|
|
'ArcanistDiffChangeType' => 'parser/diff/ArcanistDiffChangeType.php',
|
|
|
|
'ArcanistDiffHunk' => 'parser/diff/ArcanistDiffHunk.php',
|
|
|
|
'ArcanistDiffParser' => 'parser/ArcanistDiffParser.php',
|
|
|
|
'ArcanistDiffParserTestCase' => 'parser/__tests__/ArcanistDiffParserTestCase.php',
|
2012-05-30 23:22:59 +02:00
|
|
|
'ArcanistDiffUtils' => 'difference/ArcanistDiffUtils.php',
|
|
|
|
'ArcanistDiffUtilsTestCase' => 'difference/__tests__/ArcanistDiffUtilsTestCase.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistDiffWorkflow' => 'workflow/ArcanistDiffWorkflow.php',
|
|
|
|
'ArcanistDifferentialCommitMessage' => 'differential/ArcanistDifferentialCommitMessage.php',
|
|
|
|
'ArcanistDifferentialCommitMessageParserException' => 'differential/ArcanistDifferentialCommitMessageParserException.php',
|
|
|
|
'ArcanistDifferentialRevisionHash' => 'differential/constants/ArcanistDifferentialRevisionHash.php',
|
|
|
|
'ArcanistDifferentialRevisionStatus' => 'differential/constants/ArcanistDifferentialRevisionStatus.php',
|
|
|
|
'ArcanistDownloadWorkflow' => 'workflow/ArcanistDownloadWorkflow.php',
|
|
|
|
'ArcanistEventType' => 'events/constant/ArcanistEventType.php',
|
|
|
|
'ArcanistExportWorkflow' => 'workflow/ArcanistExportWorkflow.php',
|
2013-01-31 02:33:32 +01:00
|
|
|
'ArcanistFeatureWorkflow' => 'workflow/ArcanistFeatureWorkflow.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistFilenameLinter' => 'lint/linter/ArcanistFilenameLinter.php',
|
2012-08-03 21:00:54 +02:00
|
|
|
'ArcanistFlagWorkflow' => 'workflow/ArcanistFlagWorkflow.php',
|
2012-12-22 00:27:52 +01:00
|
|
|
'ArcanistFlake8Linter' => 'lint/linter/ArcanistFlake8Linter.php',
|
|
|
|
'ArcanistFlake8LinterTestCase' => 'lint/linter/__tests__/ArcanistFlake8LinterTestCase.php',
|
2013-02-15 01:16:08 +01:00
|
|
|
'ArcanistFutureLinter' => 'lint/linter/ArcanistFutureLinter.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistGeneratedLinter' => 'lint/linter/ArcanistGeneratedLinter.php',
|
|
|
|
'ArcanistGetConfigWorkflow' => 'workflow/ArcanistGetConfigWorkflow.php',
|
|
|
|
'ArcanistGitAPI' => 'repository/api/ArcanistGitAPI.php',
|
|
|
|
'ArcanistGitHookPreReceiveWorkflow' => 'workflow/ArcanistGitHookPreReceiveWorkflow.php',
|
|
|
|
'ArcanistHelpWorkflow' => 'workflow/ArcanistHelpWorkflow.php',
|
2012-06-08 03:23:57 +02:00
|
|
|
'ArcanistHgClientChannel' => 'hgdaemon/ArcanistHgClientChannel.php',
|
|
|
|
'ArcanistHgProxyClient' => 'hgdaemon/ArcanistHgProxyClient.php',
|
|
|
|
'ArcanistHgProxyServer' => 'hgdaemon/ArcanistHgProxyServer.php',
|
|
|
|
'ArcanistHgServerChannel' => 'hgdaemon/ArcanistHgServerChannel.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistHookAPI' => 'repository/hookapi/ArcanistHookAPI.php',
|
2012-06-23 08:08:25 +02:00
|
|
|
'ArcanistInlinesWorkflow' => 'workflow/ArcanistInlinesWorkflow.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistInstallCertificateWorkflow' => 'workflow/ArcanistInstallCertificateWorkflow.php',
|
|
|
|
'ArcanistJSHintLinter' => 'lint/linter/ArcanistJSHintLinter.php',
|
|
|
|
'ArcanistLandWorkflow' => 'workflow/ArcanistLandWorkflow.php',
|
|
|
|
'ArcanistLiberateWorkflow' => 'workflow/ArcanistLiberateWorkflow.php',
|
2013-02-11 23:12:10 +01:00
|
|
|
'ArcanistLicenseLinter' => 'lint/linter/ArcanistLicenseLinter.php',
|
2012-06-02 02:32:35 +02:00
|
|
|
'ArcanistLintConsoleRenderer' => 'lint/renderer/ArcanistLintConsoleRenderer.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistLintEngine' => 'lint/engine/ArcanistLintEngine.php',
|
2012-06-02 02:32:35 +02:00
|
|
|
'ArcanistLintJSONRenderer' => 'lint/renderer/ArcanistLintJSONRenderer.php',
|
|
|
|
'ArcanistLintLikeCompilerRenderer' => 'lint/renderer/ArcanistLintLikeCompilerRenderer.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistLintMessage' => 'lint/ArcanistLintMessage.php',
|
|
|
|
'ArcanistLintPatcher' => 'lint/ArcanistLintPatcher.php',
|
2012-06-02 02:32:35 +02:00
|
|
|
'ArcanistLintRenderer' => 'lint/renderer/ArcanistLintRenderer.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistLintResult' => 'lint/ArcanistLintResult.php',
|
|
|
|
'ArcanistLintSeverity' => 'lint/ArcanistLintSeverity.php',
|
2012-06-02 02:32:35 +02:00
|
|
|
'ArcanistLintSummaryRenderer' => 'lint/renderer/ArcanistLintSummaryRenderer.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistLintWorkflow' => 'workflow/ArcanistLintWorkflow.php',
|
|
|
|
'ArcanistLinter' => 'lint/linter/ArcanistLinter.php',
|
|
|
|
'ArcanistLinterTestCase' => 'lint/linter/__tests__/ArcanistLinterTestCase.php',
|
|
|
|
'ArcanistListWorkflow' => 'workflow/ArcanistListWorkflow.php',
|
|
|
|
'ArcanistMarkCommittedWorkflow' => 'workflow/ArcanistMarkCommittedWorkflow.php',
|
|
|
|
'ArcanistMercurialAPI' => 'repository/api/ArcanistMercurialAPI.php',
|
|
|
|
'ArcanistMercurialParser' => 'repository/parser/ArcanistMercurialParser.php',
|
|
|
|
'ArcanistMercurialParserTestCase' => 'repository/parser/__tests__/ArcanistMercurialParserTestCase.php',
|
2013-02-20 23:19:55 +01:00
|
|
|
'ArcanistMergeConflictLinter' => 'lint/linter/ArcanistMergeConflictLinter.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistNoEffectException' => 'exception/usage/ArcanistNoEffectException.php',
|
|
|
|
'ArcanistNoEngineException' => 'exception/usage/ArcanistNoEngineException.php',
|
|
|
|
'ArcanistNoLintLinter' => 'lint/linter/ArcanistNoLintLinter.php',
|
|
|
|
'ArcanistNoLintTestCaseMisnamed' => 'lint/linter/__tests__/ArcanistNoLintTestCase.php',
|
|
|
|
'ArcanistPEP8Linter' => 'lint/linter/ArcanistPEP8Linter.php',
|
|
|
|
'ArcanistPasteWorkflow' => 'workflow/ArcanistPasteWorkflow.php',
|
|
|
|
'ArcanistPatchWorkflow' => 'workflow/ArcanistPatchWorkflow.php',
|
|
|
|
'ArcanistPhpcsLinter' => 'lint/linter/ArcanistPhpcsLinter.php',
|
|
|
|
'ArcanistPhutilLibraryLinter' => 'lint/linter/ArcanistPhutilLibraryLinter.php',
|
|
|
|
'ArcanistPhutilTestCase' => 'unit/engine/phutil/ArcanistPhutilTestCase.php',
|
2012-06-08 23:22:23 +02:00
|
|
|
'ArcanistPhutilTestCaseTestCase' => 'unit/engine/phutil/testcase/ArcanistPhutilTestCaseTestCase.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistPhutilTestSkippedException' => 'unit/engine/phutil/testcase/ArcanistPhutilTestSkippedException.php',
|
|
|
|
'ArcanistPhutilTestTerminatedException' => 'unit/engine/phutil/testcase/ArcanistPhutilTestTerminatedException.php',
|
2013-01-29 07:03:03 +01:00
|
|
|
'ArcanistPhutilXHPASTLinter' => 'lint/linter/ArcanistPhutilXHPASTLinter.php',
|
|
|
|
'ArcanistPhutilXHPASTLinterTestCase' => 'lint/linter/__tests__/ArcanistPhutilXHPASTLinterTestCase.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistPyFlakesLinter' => 'lint/linter/ArcanistPyFlakesLinter.php',
|
|
|
|
'ArcanistPyLintLinter' => 'lint/linter/ArcanistPyLintLinter.php',
|
2013-01-29 01:27:47 +01:00
|
|
|
'ArcanistRepoUtilsTestCase' => 'repository/util/__tests__/ArcanistRepoUtilsTestCase.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistRepositoryAPI' => 'repository/api/ArcanistRepositoryAPI.php',
|
2013-01-28 23:11:31 +01:00
|
|
|
'ArcanistRepositoryAPIMiscTestCase' => 'repository/api/__tests__/ArcanistRepositoryAPIMiscTestCase.php',
|
2012-12-17 21:53:28 +01:00
|
|
|
'ArcanistRepositoryAPIStateTestCase' => 'repository/api/__tests__/ArcanistRepositoryAPIStateTestCase.php',
|
2012-09-06 20:50:15 +02:00
|
|
|
'ArcanistRubyLinter' => 'lint/linter/ArcanistRubyLinter.php',
|
|
|
|
'ArcanistRubyLinterTestCase' => 'lint/linter/__tests__/ArcanistRubyLinterTestCase.php',
|
2012-12-03 17:13:45 +01:00
|
|
|
'ArcanistScalaSBTLinter' => 'lint/linter/ArcanistScalaSBTLinter.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistScriptAndRegexLinter' => 'lint/linter/ArcanistScriptAndRegexLinter.php',
|
|
|
|
'ArcanistSetConfigWorkflow' => 'workflow/ArcanistSetConfigWorkflow.php',
|
Enrich arc configuration and add stronger typing
Summary:
See <https://github.com/facebook/arcanist/issues/45>
Currently, when the user types `arc set-config x false`, we set it as the string "false", which is usually not desirable. We have some steps toward typed config already, but expand on what we have and move as much stuff as possible into it, including all the config settings that aren't currently documented (there are still some lint-specific and project-specific settings not present here, but this is most of it).
Also make the `phutil_libraries` key a legacy name for `load`, and `immutable_history` a legacy name for `history.immutable`. Generally the goal here is to make config simpler and bring it more in-line with Git/Mercurial, which use dotted hierarchies.
I'll add some documentation here but I think most of the changes should be fairly straightforward.
Test Plan:
- `arc set-config history.immutable on` (And similar -- sets to boolean true.)
- `arc set-config history.immutable off` (And similar -- sets to boolean false.)
- `arc set-config history.immutable derp` (And similar -- raises exception.)
- `arc set-config history.immutable ''` (And similar -- removes setting value.)
- `arc set-config --show`
- `arc get-config`
- `arc get-config base`
Reviewers: dschleimer, bos, btrahan, vrana
Reviewed By: dschleimer
CC: aran
Maniphest Tasks: T1546
Differential Revision: https://secure.phabricator.com/D3045
2012-07-26 03:37:09 +02:00
|
|
|
'ArcanistSettings' => 'configuration/ArcanistSettings.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistShellCompleteWorkflow' => 'workflow/ArcanistShellCompleteWorkflow.php',
|
|
|
|
'ArcanistSingleLintEngine' => 'lint/engine/ArcanistSingleLintEngine.php',
|
2012-09-05 08:45:54 +02:00
|
|
|
'ArcanistSpellingDefaultData' => 'lint/linter/spelling/ArcanistSpellingDefaultData.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistSpellingLinter' => 'lint/linter/ArcanistSpellingLinter.php',
|
|
|
|
'ArcanistSpellingLinterTestCase' => 'lint/linter/__tests__/ArcanistSpellingLinterTestCase.php',
|
|
|
|
'ArcanistSubversionAPI' => 'repository/api/ArcanistSubversionAPI.php',
|
|
|
|
'ArcanistSubversionHookAPI' => 'repository/hookapi/ArcanistSubversionHookAPI.php',
|
|
|
|
'ArcanistSvnHookPreCommitWorkflow' => 'workflow/ArcanistSvnHookPreCommitWorkflow.php',
|
|
|
|
'ArcanistTasksWorkflow' => 'workflow/ArcanistTasksWorkflow.php',
|
2012-09-08 00:16:39 +02:00
|
|
|
'ArcanistTestCase' => 'infrastructure/testing/ArcanistTestCase.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistTextLinter' => 'lint/linter/ArcanistTextLinter.php',
|
|
|
|
'ArcanistTextLinterTestCase' => 'lint/linter/__tests__/ArcanistTextLinterTestCase.php',
|
2012-07-11 02:32:36 +02:00
|
|
|
'ArcanistTodoWorkflow' => 'workflow/ArcanistTodoWorkflow.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistUncommittedChangesException' => 'exception/usage/ArcanistUncommittedChangesException.php',
|
|
|
|
'ArcanistUnitTestResult' => 'unit/ArcanistUnitTestResult.php',
|
|
|
|
'ArcanistUnitWorkflow' => 'workflow/ArcanistUnitWorkflow.php',
|
|
|
|
'ArcanistUpgradeWorkflow' => 'workflow/ArcanistUpgradeWorkflow.php',
|
|
|
|
'ArcanistUploadWorkflow' => 'workflow/ArcanistUploadWorkflow.php',
|
|
|
|
'ArcanistUsageException' => 'exception/ArcanistUsageException.php',
|
|
|
|
'ArcanistUserAbortException' => 'exception/usage/ArcanistUserAbortException.php',
|
|
|
|
'ArcanistWhichWorkflow' => 'workflow/ArcanistWhichWorkflow.php',
|
2012-05-30 23:22:59 +02:00
|
|
|
'ArcanistWorkingCopyIdentity' => 'workingcopyidentity/ArcanistWorkingCopyIdentity.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistXHPASTLintNamingHook' => 'lint/linter/xhpast/ArcanistXHPASTLintNamingHook.php',
|
|
|
|
'ArcanistXHPASTLintNamingHookTestCase' => 'lint/linter/xhpast/__tests__/ArcanistXHPASTLintNamingHookTestCase.php',
|
2013-02-05 20:00:07 +01:00
|
|
|
'ArcanistXHPASTLintSwitchHook' => 'lint/linter/xhpast/ArcanistXHPASTLintSwitchHook.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'ArcanistXHPASTLinter' => 'lint/linter/ArcanistXHPASTLinter.php',
|
|
|
|
'ArcanistXHPASTLinterTestCase' => 'lint/linter/__tests__/ArcanistXHPASTLinterTestCase.php',
|
|
|
|
'ComprehensiveLintEngine' => 'lint/engine/ComprehensiveLintEngine.php',
|
|
|
|
'ExampleLintEngine' => 'lint/engine/ExampleLintEngine.php',
|
2013-01-28 02:16:50 +01:00
|
|
|
'GoTestResultParser' => 'unit/engine/GoTestResultParser.php',
|
|
|
|
'GoTestResultParserTestCase' => 'unit/engine/__tests__/GoTestResultParserTestCase.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'NoseTestEngine' => 'unit/engine/NoseTestEngine.php',
|
2012-09-30 03:03:43 +02:00
|
|
|
'PHPUnitTestEngineTestCase' => 'unit/engine/__tests__/PHPUnitTestEngineTestCase.php',
|
2013-01-26 02:06:20 +01:00
|
|
|
'PhpunitResultParser' => 'unit/engine/PhpunitResultParser.php',
|
2012-06-01 20:41:04 +02:00
|
|
|
'PhpunitTestEngine' => 'unit/engine/PhpunitTestEngine.php',
|
|
|
|
'PhutilLintEngine' => 'lint/engine/PhutilLintEngine.php',
|
|
|
|
'PhutilUnitTestEngine' => 'unit/engine/PhutilUnitTestEngine.php',
|
|
|
|
'PhutilUnitTestEngineTestCase' => 'unit/engine/__tests__/PhutilUnitTestEngineTestCase.php',
|
|
|
|
'UnitTestableArcanistLintEngine' => 'lint/engine/UnitTestableArcanistLintEngine.php',
|
2011-01-10 00:22:25 +01:00
|
|
|
),
|
|
|
|
'function' =>
|
|
|
|
array(
|
2013-01-29 01:27:47 +01:00
|
|
|
'hgsprintf' => 'repository/util/hgsprintf.php',
|
|
|
|
'xsprintf_mercurial' => 'repository/util/hgsprintf.php',
|
2011-01-10 00:22:25 +01:00
|
|
|
),
|
2012-05-30 23:22:59 +02:00
|
|
|
'xmap' =>
|
2011-01-10 00:22:25 +01:00
|
|
|
array(
|
2012-02-21 22:16:52 +01:00
|
|
|
'ArcanistAliasWorkflow' => 'ArcanistBaseWorkflow',
|
2011-01-10 00:22:25 +01:00
|
|
|
'ArcanistAmendWorkflow' => 'ArcanistBaseWorkflow',
|
2012-07-21 11:09:21 +02:00
|
|
|
'ArcanistAnoidWorkflow' => 'ArcanistBaseWorkflow',
|
2013-02-11 23:12:10 +01:00
|
|
|
'ArcanistApacheLicenseLinter' => 'ArcanistLicenseLinter',
|
2012-11-03 02:09:38 +01:00
|
|
|
'ArcanistArcanistLinterTestCase' => 'ArcanistLinterTestCase',
|
2012-09-08 00:16:39 +02:00
|
|
|
'ArcanistBaseCommitParserTestCase' => 'ArcanistTestCase',
|
2012-10-03 23:34:02 +02:00
|
|
|
'ArcanistBaseWorkflow' => 'Phobject',
|
2013-01-29 07:03:03 +01:00
|
|
|
'ArcanistBaseXHPASTLinter' => 'ArcanistLinter',
|
2013-01-31 02:33:32 +01:00
|
|
|
'ArcanistBookmarkWorkflow' => 'ArcanistFeatureWorkflow',
|
|
|
|
'ArcanistBranchWorkflow' => 'ArcanistFeatureWorkflow',
|
2012-12-09 23:09:35 +01:00
|
|
|
'ArcanistBrowseWorkflow' => 'ArcanistBaseWorkflow',
|
2012-09-08 00:16:39 +02:00
|
|
|
'ArcanistBundleTestCase' => 'ArcanistTestCase',
|
2011-05-06 17:43:38 +02:00
|
|
|
'ArcanistCallConduitWorkflow' => 'ArcanistBaseWorkflow',
|
2012-05-30 23:22:59 +02:00
|
|
|
'ArcanistCapabilityNotSupportedException' => 'Exception',
|
|
|
|
'ArcanistChooseInvalidRevisionException' => 'Exception',
|
|
|
|
'ArcanistChooseNoRevisionsException' => 'Exception',
|
2012-04-17 22:51:10 +02:00
|
|
|
'ArcanistCloseRevisionWorkflow' => 'ArcanistBaseWorkflow',
|
2012-04-09 05:55:10 +02:00
|
|
|
'ArcanistCloseWorkflow' => 'ArcanistBaseWorkflow',
|
2012-09-08 00:16:39 +02:00
|
|
|
'ArcanistCommentRemoverTestCase' => 'ArcanistTestCase',
|
2011-01-10 00:22:25 +01:00
|
|
|
'ArcanistCommitWorkflow' => 'ArcanistBaseWorkflow',
|
2012-01-20 02:09:27 +01:00
|
|
|
'ArcanistConduitLinter' => 'ArcanistLinter',
|
2011-01-10 00:22:25 +01:00
|
|
|
'ArcanistCoverWorkflow' => 'ArcanistBaseWorkflow',
|
2013-01-07 17:16:45 +01:00
|
|
|
'ArcanistCppcheckLinter' => 'ArcanistLinter',
|
2013-01-05 03:59:38 +01:00
|
|
|
'ArcanistCpplintLinter' => 'ArcanistLinter',
|
|
|
|
'ArcanistCpplintLinterTestCase' => 'ArcanistArcanistLinterTestCase',
|
2012-09-08 00:16:39 +02:00
|
|
|
'ArcanistDiffParserTestCase' => 'ArcanistTestCase',
|
|
|
|
'ArcanistDiffUtilsTestCase' => 'ArcanistTestCase',
|
2011-01-10 00:22:25 +01:00
|
|
|
'ArcanistDiffWorkflow' => 'ArcanistBaseWorkflow',
|
2012-05-30 23:22:59 +02:00
|
|
|
'ArcanistDifferentialCommitMessageParserException' => 'Exception',
|
2011-07-29 19:05:07 +02:00
|
|
|
'ArcanistDownloadWorkflow' => 'ArcanistBaseWorkflow',
|
2011-11-10 22:47:45 +01:00
|
|
|
'ArcanistEventType' => 'PhutilEventType',
|
2011-01-10 00:22:25 +01:00
|
|
|
'ArcanistExportWorkflow' => 'ArcanistBaseWorkflow',
|
2013-01-31 02:33:32 +01:00
|
|
|
'ArcanistFeatureWorkflow' => 'ArcanistBaseWorkflow',
|
2011-01-10 00:22:25 +01:00
|
|
|
'ArcanistFilenameLinter' => 'ArcanistLinter',
|
2012-08-03 21:00:54 +02:00
|
|
|
'ArcanistFlagWorkflow' => 'ArcanistBaseWorkflow',
|
2012-12-22 00:27:52 +01:00
|
|
|
'ArcanistFlake8Linter' => 'ArcanistLinter',
|
|
|
|
'ArcanistFlake8LinterTestCase' => 'ArcanistArcanistLinterTestCase',
|
2013-02-15 01:16:08 +01:00
|
|
|
'ArcanistFutureLinter' => 'ArcanistLinter',
|
2011-01-10 00:22:25 +01:00
|
|
|
'ArcanistGeneratedLinter' => 'ArcanistLinter',
|
2012-05-07 15:07:23 +02:00
|
|
|
'ArcanistGetConfigWorkflow' => 'ArcanistBaseWorkflow',
|
2011-01-10 00:22:25 +01:00
|
|
|
'ArcanistGitAPI' => 'ArcanistRepositoryAPI',
|
|
|
|
'ArcanistGitHookPreReceiveWorkflow' => 'ArcanistBaseWorkflow',
|
|
|
|
'ArcanistHelpWorkflow' => 'ArcanistBaseWorkflow',
|
2012-06-08 03:23:57 +02:00
|
|
|
'ArcanistHgClientChannel' => 'PhutilProtocolChannel',
|
|
|
|
'ArcanistHgServerChannel' => 'PhutilProtocolChannel',
|
2012-06-23 08:08:25 +02:00
|
|
|
'ArcanistInlinesWorkflow' => 'ArcanistBaseWorkflow',
|
2011-06-14 21:18:40 +02:00
|
|
|
'ArcanistInstallCertificateWorkflow' => 'ArcanistBaseWorkflow',
|
2012-01-14 00:21:57 +01:00
|
|
|
'ArcanistJSHintLinter' => 'ArcanistLinter',
|
Add "arc land" as a first-class workflow
Summary:
This is a fancy version of "land.sh" that uses "git merge --squash" and
"arc which" to cover more cases.
Test Plan:
Ran "arc land" against various repository states (no such branch, not
accepted, valid, etc). Things seemed OK. There are basically an infinite number
of states here so it's hard to test exhaustively.
Reviewers: cpiro, btrahan, jungejason, davidreuss
Reviewed By: davidreuss
CC: zeeg, aran, epriestley, davidreuss
Maniphest Tasks: T787, T723
Differential Revision: https://secure.phabricator.com/D1488
2012-01-26 00:10:59 +01:00
|
|
|
'ArcanistLandWorkflow' => 'ArcanistBaseWorkflow',
|
'arc liberate', convenience wrapper for various libphutil operations
Summary:
The story for creating and maintaining libphutil libraries and modules
is pretty terrible right now: you need to know a bunch of secret scripts and
dark magic. Provide 'arc liberate' which endeavors to always do the right thing
and put a library in the correct state.
Test Plan:
Ran liberate on libphutil, arcanist, phabricator; created new
libphutil libraries, added classes to them, liberated everything, introduced
errors etc and liberated that stuff, nothing was obviously broken in a terrible
way..?
Reviewed By: aran
Reviewers: jungejason, tuomaspelkonen, aran
CC: aran, epriestley
Differential Revision: 269
2011-05-12 01:30:22 +02:00
|
|
|
'ArcanistLiberateWorkflow' => 'ArcanistBaseWorkflow',
|
2013-02-11 23:12:10 +01:00
|
|
|
'ArcanistLicenseLinter' => 'ArcanistLinter',
|
2012-06-02 02:32:35 +02:00
|
|
|
'ArcanistLintConsoleRenderer' => 'ArcanistLintRenderer',
|
|
|
|
'ArcanistLintJSONRenderer' => 'ArcanistLintRenderer',
|
|
|
|
'ArcanistLintLikeCompilerRenderer' => 'ArcanistLintRenderer',
|
|
|
|
'ArcanistLintSummaryRenderer' => 'ArcanistLintRenderer',
|
2011-01-10 00:22:25 +01:00
|
|
|
'ArcanistLintWorkflow' => 'ArcanistBaseWorkflow',
|
2012-11-03 02:09:38 +01:00
|
|
|
'ArcanistLinterTestCase' => 'ArcanistPhutilTestCase',
|
2011-01-10 00:22:25 +01:00
|
|
|
'ArcanistListWorkflow' => 'ArcanistBaseWorkflow',
|
|
|
|
'ArcanistMarkCommittedWorkflow' => 'ArcanistBaseWorkflow',
|
Basic Mercurial support for Arcanist
Summary:
There's a lot of ground left to cover but this makes "arc diff" work (on one
trivial diff) in my sandbox, at least, and supports parsing of Mercurial native
diffs (which are unified + a custom header). Piles of missing features, still.
Some of this is blocked by me not understanding the mercurial model well yet.
This is also a really good opportunity for cleanup (especially, reducing the
level of "instanceof" in the diff workflow), I'll try to do a bunch of that in
followup diffs.
Test Plan: Ran "arc diff" in a mercurial repository, got a diff out of it.
Reviewed By: aran
Reviewers: Makinde, jungejason, tuomaspelkonen, aran, codeblock
CC: aran, epriestley, codeblock, fratrik
Differential Revision: 792
2011-08-09 18:00:29 +02:00
|
|
|
'ArcanistMercurialAPI' => 'ArcanistRepositoryAPI',
|
2012-09-08 00:16:39 +02:00
|
|
|
'ArcanistMercurialParserTestCase' => 'ArcanistTestCase',
|
2013-02-20 23:19:55 +01:00
|
|
|
'ArcanistMergeConflictLinter' => 'ArcanistLinter',
|
2011-01-10 00:22:25 +01:00
|
|
|
'ArcanistNoEffectException' => 'ArcanistUsageException',
|
|
|
|
'ArcanistNoEngineException' => 'ArcanistUsageException',
|
2011-02-25 02:59:49 +01:00
|
|
|
'ArcanistNoLintLinter' => 'ArcanistLinter',
|
2011-03-13 03:16:15 +01:00
|
|
|
'ArcanistNoLintTestCaseMisnamed' => 'ArcanistLinterTestCase',
|
2013-02-15 01:16:08 +01:00
|
|
|
'ArcanistPEP8Linter' => 'ArcanistFutureLinter',
|
2011-07-30 03:55:01 +02:00
|
|
|
'ArcanistPasteWorkflow' => 'ArcanistBaseWorkflow',
|
2011-01-10 00:22:25 +01:00
|
|
|
'ArcanistPatchWorkflow' => 'ArcanistBaseWorkflow',
|
2012-05-24 10:51:44 +02:00
|
|
|
'ArcanistPhpcsLinter' => 'ArcanistLinter',
|
2012-05-30 16:25:09 +02:00
|
|
|
'ArcanistPhutilLibraryLinter' => 'ArcanistLinter',
|
2012-06-08 23:22:23 +02:00
|
|
|
'ArcanistPhutilTestCaseTestCase' => 'ArcanistPhutilTestCase',
|
2012-05-30 23:22:59 +02:00
|
|
|
'ArcanistPhutilTestSkippedException' => 'Exception',
|
|
|
|
'ArcanistPhutilTestTerminatedException' => 'Exception',
|
2013-01-29 07:03:03 +01:00
|
|
|
'ArcanistPhutilXHPASTLinter' => 'ArcanistBaseXHPASTLinter',
|
|
|
|
'ArcanistPhutilXHPASTLinterTestCase' => 'ArcanistArcanistLinterTestCase',
|
2011-05-19 11:00:59 +02:00
|
|
|
'ArcanistPyFlakesLinter' => 'ArcanistLinter',
|
2011-05-22 12:32:26 +02:00
|
|
|
'ArcanistPyLintLinter' => 'ArcanistLinter',
|
2013-01-29 01:27:47 +01:00
|
|
|
'ArcanistRepoUtilsTestCase' => 'ArcanistTestCase',
|
2013-01-28 23:11:31 +01:00
|
|
|
'ArcanistRepositoryAPIMiscTestCase' => 'ArcanistTestCase',
|
2012-12-17 21:53:28 +01:00
|
|
|
'ArcanistRepositoryAPIStateTestCase' => 'ArcanistTestCase',
|
2012-09-06 20:50:15 +02:00
|
|
|
'ArcanistRubyLinter' => 'ArcanistLinter',
|
2012-11-03 02:09:38 +01:00
|
|
|
'ArcanistRubyLinterTestCase' => 'ArcanistArcanistLinterTestCase',
|
2012-12-03 17:13:45 +01:00
|
|
|
'ArcanistScalaSBTLinter' => 'ArcanistLinter',
|
2012-05-31 21:09:01 +02:00
|
|
|
'ArcanistScriptAndRegexLinter' => 'ArcanistLinter',
|
2012-05-07 15:07:23 +02:00
|
|
|
'ArcanistSetConfigWorkflow' => 'ArcanistBaseWorkflow',
|
2011-01-15 05:00:11 +01:00
|
|
|
'ArcanistShellCompleteWorkflow' => 'ArcanistBaseWorkflow',
|
2012-05-31 21:09:01 +02:00
|
|
|
'ArcanistSingleLintEngine' => 'ArcanistLintEngine',
|
2012-01-16 06:28:58 +01:00
|
|
|
'ArcanistSpellingLinter' => 'ArcanistLinter',
|
2012-11-03 02:09:38 +01:00
|
|
|
'ArcanistSpellingLinterTestCase' => 'ArcanistArcanistLinterTestCase',
|
2011-01-10 00:22:25 +01:00
|
|
|
'ArcanistSubversionAPI' => 'ArcanistRepositoryAPI',
|
[arc svn-hook-pre-commit] Access working copy
Summary:
Creates a new hook API that can be used to interface with
SVN/Git/Mercurial in the context of a commit hook. Currently only adds a
function to read the modified file data in a Subversion commit hook.
An object of this API is created in the SvnHookPreCommitWorkflow and
passed on the Lint Engine which then uses it to access current file
data, of the way the APIs seem to be structured); linters use the
getData function which is essentially a wrapper around the engine's
call, with another layer of caching.
Task ID: #770556
Blame Rev:
Test Plan:
- Create a local svn repository and add a minimal hook to run the local
version of arc to test commits
(http://phabricator.com/docs/arcanist/article/Installing_Arcanist_SVN_Hooks.html)
- Create a temporary repository that can trigger any of the linters
available, and test against a temporary linter by committing against
the test repository: the linter should be able to access all required
files by using loadData/getData in the LintEngine and Linter.
Revert Plan:
Tags: lint, svn-hook-pre-commit
Reviewers: jungejason, asukhachev, epriestley, aran
Reviewed By: epriestley
CC: aran, jungejason, epriestley, kunalb, asukhachev
Differential Revision: https://secure.phabricator.com/D1256
2011-12-21 05:26:05 +01:00
|
|
|
'ArcanistSubversionHookAPI' => 'ArcanistHookAPI',
|
2011-01-12 10:49:48 +01:00
|
|
|
'ArcanistSvnHookPreCommitWorkflow' => 'ArcanistBaseWorkflow',
|
2012-04-08 02:40:25 +02:00
|
|
|
'ArcanistTasksWorkflow' => 'ArcanistBaseWorkflow',
|
2012-09-08 00:16:39 +02:00
|
|
|
'ArcanistTestCase' => 'ArcanistPhutilTestCase',
|
2011-01-10 00:22:25 +01:00
|
|
|
'ArcanistTextLinter' => 'ArcanistLinter',
|
2012-11-03 02:09:38 +01:00
|
|
|
'ArcanistTextLinterTestCase' => 'ArcanistArcanistLinterTestCase',
|
2012-07-11 02:32:36 +02:00
|
|
|
'ArcanistTodoWorkflow' => 'ArcanistBaseWorkflow',
|
2012-03-20 03:17:10 +01:00
|
|
|
'ArcanistUncommittedChangesException' => 'ArcanistUsageException',
|
2011-01-10 00:22:25 +01:00
|
|
|
'ArcanistUnitWorkflow' => 'ArcanistBaseWorkflow',
|
2012-05-09 19:01:31 +02:00
|
|
|
'ArcanistUpgradeWorkflow' => 'ArcanistBaseWorkflow',
|
2011-07-29 19:05:07 +02:00
|
|
|
'ArcanistUploadWorkflow' => 'ArcanistBaseWorkflow',
|
2012-05-30 23:22:59 +02:00
|
|
|
'ArcanistUsageException' => 'Exception',
|
2011-01-10 00:22:25 +01:00
|
|
|
'ArcanistUserAbortException' => 'ArcanistUsageException',
|
2012-01-24 17:07:38 +01:00
|
|
|
'ArcanistWhichWorkflow' => 'ArcanistBaseWorkflow',
|
2012-09-08 00:16:39 +02:00
|
|
|
'ArcanistXHPASTLintNamingHookTestCase' => 'ArcanistTestCase',
|
2013-01-29 07:03:03 +01:00
|
|
|
'ArcanistXHPASTLinter' => 'ArcanistBaseXHPASTLinter',
|
2012-11-03 02:09:38 +01:00
|
|
|
'ArcanistXHPASTLinterTestCase' => 'ArcanistArcanistLinterTestCase',
|
2012-01-17 23:54:27 +01:00
|
|
|
'ComprehensiveLintEngine' => 'ArcanistLintEngine',
|
2011-06-30 04:32:03 +02:00
|
|
|
'ExampleLintEngine' => 'ArcanistLintEngine',
|
2013-01-28 02:16:50 +01:00
|
|
|
'GoTestResultParser' => 'ArcanistBaseTestResultParser',
|
|
|
|
'GoTestResultParserTestCase' => 'ArcanistTestCase',
|
2012-04-27 21:11:41 +02:00
|
|
|
'NoseTestEngine' => 'ArcanistBaseUnitTestEngine',
|
2012-09-30 03:03:43 +02:00
|
|
|
'PHPUnitTestEngineTestCase' => 'ArcanistTestCase',
|
2013-01-28 02:16:50 +01:00
|
|
|
'PhpunitResultParser' => 'ArcanistBaseTestResultParser',
|
2012-05-15 15:12:10 +02:00
|
|
|
'PhpunitTestEngine' => 'ArcanistBaseUnitTestEngine',
|
2011-01-10 00:22:25 +01:00
|
|
|
'PhutilLintEngine' => 'ArcanistLintEngine',
|
|
|
|
'PhutilUnitTestEngine' => 'ArcanistBaseUnitTestEngine',
|
2012-09-08 00:16:39 +02:00
|
|
|
'PhutilUnitTestEngineTestCase' => 'ArcanistTestCase',
|
2011-01-10 00:22:25 +01:00
|
|
|
'UnitTestableArcanistLintEngine' => 'ArcanistLintEngine',
|
|
|
|
),
|
|
|
|
));
|