From 93fecfe7e95a00fef824debbbf8b4d289bb6029e Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 28 Nov 2013 15:19:32 +0600 Subject: [PATCH] Added list of archived repositories which RO access to them Currently only bf-extensions, rest of the repos will arrive soon. --- scripts/svnauth/archived_repos.php | 5 +++++ scripts/svnauth/rebuild_svnauth.php | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 scripts/svnauth/archived_repos.php diff --git a/scripts/svnauth/archived_repos.php b/scripts/svnauth/archived_repos.php new file mode 100644 index 0000000000..fdc8833f75 --- /dev/null +++ b/scripts/svnauth/archived_repos.php @@ -0,0 +1,5 @@ + diff --git a/scripts/svnauth/rebuild_svnauth.php b/scripts/svnauth/rebuild_svnauth.php index f76da8db4f..080565fc75 100755 --- a/scripts/svnauth/rebuild_svnauth.php +++ b/scripts/svnauth/rebuild_svnauth.php @@ -106,6 +106,14 @@ function rebuildConfiguration($what) { $authfile = 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) { $type = $repository->getVersionControlSystem(); if ($type == PhabricatorRepositoryType::REPOSITORY_TYPE_SVN) {