Added list of archived repositories which RO access to them

Currently only bf-extensions, rest of the repos will arrive soon.
This commit is contained in:
2013-11-28 15:19:32 +06:00
parent 53bb3ac361
commit 93fecfe7e9
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
<?php
$ARCHIVED_REPOS = array(
'bf-extensions'
);
?>

View File

@@ -106,6 +106,14 @@ function rebuildConfiguration($what) {
$authfile = array(); $authfile = array();
$access = array(); $access = array();
require_once 'archived_repos.php';
foreach ($ARCHIVED_REPOS as $repository) {
$repository_pathname = "$repository:/";
$access[$repository_pathname]['RW'] = array();
$access[$repository_pathname]['RO'] = array();
}
foreach ($repositories as $repository_id => $repository) { foreach ($repositories as $repository_id => $repository) {
$type = $repository->getVersionControlSystem(); $type = $repository->getVersionControlSystem();
if ($type == PhabricatorRepositoryType::REPOSITORY_TYPE_SVN) { if ($type == PhabricatorRepositoryType::REPOSITORY_TYPE_SVN) {