Page MenuHomePhabricator

D12668.diff
No OneTemporary

D12668.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
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)

Event Timeline