Page MenuHomePhabricator

D12668.id30430.diff
No OneTemporary

D12668.id30430.diff

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

Mime Type
text/plain
Expires
Tue, Nov 19, 1:52 AM (8 h, 29 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6720598
Default Alt Text
D12668.id30430.diff (967 B)

Event Timeline