Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14000786
D12668.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
967 B
Referenced Files
None
Subscribers
None
D12668.diff
View Options
diff --git a/scripts/symbols/import_repository_symbols.php b/scripts/symbols/import_repository_symbols.php
--- a/scripts/symbols/import_repository_symbols.php
+++ b/scripts/symbols/import_repository_symbols.php
@@ -35,20 +35,21 @@
'be part of a single transaction.'),
),
array(
- 'name' => 'more',
+ 'name' => 'callsign',
'wildcard' => true,
),
));
-$more = $args->getArg('more');
-if (count($more) !== 1) {
+$callsigns = $args->getArg('callsign');
+if (count($callsigns) !== 1) {
$args->printHelpAndExit();
}
-$callsign = head($more);
-$repository = id(new PhabricatorRepository())->loadOneWhere(
- 'callsign = %s',
- $callsign);
+$callsign = head($callsigns);
+$repository = id(new PhabricatorRepositoryQuery())
+ ->setViewer(PhabricatorUser::getOmnipotentUser())
+ ->withCallsigns($callsigns)
+ ->executeOne();
if (!$repository) {
echo pht("Repository '%s' does not exist.", $callsign);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 26, 12:56 AM (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6720598
Default Alt Text
D12668.diff (967 B)
Attached To
Mode
D12668: Fix a few issues with the "import symbols" script
Attached
Detach File
Event Timeline
Log In to Comment