Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F137047
migrate_repos.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:47 AM
2014-04-02 00:47:04 (UTC+0)
Size
475 B
Referenced Files
None
Subscribers
None
migrate_repos.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'
);
// 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();
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/2t/i6/eqvfb7ahztnxttoj
Default Alt Text
migrate_repos.php (475 B)
Attached To
Mode
P1107 migrate_repos.php
Attached
Detach File
Event Timeline
Log In to Comment