Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1107
migrate_repos.php
Active
Public
Actions
Authored by
epriestley
on Apr 2 2014, 12:47 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F137047: migrate_repos.php
Apr 2 2014, 12:47 AM
2014-04-02 00:47:04 (UTC+0)
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
edited the content of this paste.
(Show Details)
Apr 2 2014, 12:47 AM
2014-04-02 00:47:04 (UTC+0)
epriestley
changed the title of this paste from untitled to
migrate_repos.php
.
epriestley
updated the paste's language from
autodetect
to
autodetect
.
Log In to Comment