Page MenuHomePhabricator
Paste P1107

migrate_repos.php
ActivePublic

Authored by epriestley on Apr 2 2014, 12:47 AM.
Tags
None
Referenced Files
F137047: migrate_repos.php
Apr 2 2014, 12:47 AM
Subscribers
None
<?php
require_once 'scripts/__init_script__.php';
foreach (new LiskMigrationIterator(new PhabricatorRepository()) as $repo) {
$callsign = $repo->getCallsign();
echo "Repository: {$callsign}\n";
$old = $repo->getDetail('close-commits-filter');
// Set this to the value you want to use.
$new = 'master';
echo "Changing: {$old} -> {$new}\n";
$repo->setDetail('close-commits-filter', $new);
// Uncomment this to actually save changes.
// $repo->save();
}

Event Timeline

epriestley changed the title of this paste from untitled to migrate_repos.php.
epriestley updated the paste's language from autodetect to autodetect.