diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index eaff501d43..a267c09d7d 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -1125,6 +1125,7 @@ phutil_register_library_map(array( 'PhabricatorRepositoryCommitOwnersWorker' => 'applications/repository/worker/PhabricatorRepositoryCommitOwnersWorker.php', 'PhabricatorRepositoryCommitParserWorker' => 'applications/repository/worker/PhabricatorRepositoryCommitParserWorker.php', 'PhabricatorRepositoryCommitSearchIndexer' => 'applications/repository/search/PhabricatorRepositoryCommitSearchIndexer.php', + 'PhabricatorRepositoryConfigOptions' => 'applications/repository/PhabricatorRepositoryConfigOptions.php', 'PhabricatorRepositoryController' => 'applications/repository/controller/PhabricatorRepositoryController.php', 'PhabricatorRepositoryCreateController' => 'applications/repository/controller/PhabricatorRepositoryCreateController.php', 'PhabricatorRepositoryDAO' => 'applications/repository/storage/PhabricatorRepositoryDAO.php', @@ -2479,6 +2480,7 @@ phutil_register_library_map(array( 'PhabricatorRepositoryCommitOwnersWorker' => 'PhabricatorRepositoryCommitParserWorker', 'PhabricatorRepositoryCommitParserWorker' => 'PhabricatorWorker', 'PhabricatorRepositoryCommitSearchIndexer' => 'PhabricatorSearchDocumentIndexer', + 'PhabricatorRepositoryConfigOptions' => 'PhabricatorApplicationConfigOptions', 'PhabricatorRepositoryController' => 'PhabricatorController', 'PhabricatorRepositoryCreateController' => 'PhabricatorRepositoryController', 'PhabricatorRepositoryDAO' => 'PhabricatorLiskDAO', diff --git a/src/applications/repository/PhabricatorRepositoryConfigOptions.php b/src/applications/repository/PhabricatorRepositoryConfigOptions.php new file mode 100644 index 0000000000..f2b0e449a4 --- /dev/null +++ b/src/applications/repository/PhabricatorRepositoryConfigOptions.php @@ -0,0 +1,33 @@ +newOption('repository.default-local-path', 'string', null) + ->setSummary( + pht("Default location to store local copies of repositories.")) + ->setDescription( + pht( + "The default location in which to store local copies of ". + "repositories. Anything stored in this directory will be assumed ". + "to be under the control of phabricator, which means that ". + "Phabricator will try to do some maintenance on working copies ". + "if there are problems (such as a change to the remote origin ". + "url). This maintenance may include completely removing (and ". + "recloning) anything in this directory.\n\n". + "When set to null, this option is ignored (i.e. Phabricator will ". + "not fully control any working copies).")), + ); + } + +}