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:
5
scripts/svnauth/archived_repos.php
Normal file
5
scripts/svnauth/archived_repos.php
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
$ARCHIVED_REPOS = array(
|
||||||
|
'bf-extensions'
|
||||||
|
);
|
||||||
|
?>
|
||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user