Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F137049
migrate_repos_fixed.php
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
epriestley
Apr 2 2014, 12:48 AM
2014-04-02 00:48:57 (UTC+0)
Size
582 B
Referenced Files
None
Subscribers
None
migrate_repos_fixed.php
View Options
<?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'
,
array
());
// Set this to the value you want to use.
$new
=
array
(
'master'
);
$old_string
=
implode
(
', '
,
$old
);
$new_string
=
implode
(
', '
,
$new
);
echo
"Changing: {$old_string} -> {$new_string}
\n
"
;
$repo
->
setDetail
(
'close-commits-filter'
,
$new
);
// Uncomment this to actually save changes.
// $repo->save();
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/qa/tc/r5losiowrokzsigy
Default Alt Text
migrate_repos_fixed.php (582 B)
Attached To
Mode
P1108 migrate_repos_fixed.php
Attached
Detach File
Event Timeline
Log In to Comment