@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix a few issues with the "import symbols" script

Summary: Ref T7977. Fix a few issues that I forgot to fix up.

Test Plan: Run the script.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7977

Differential Revision: https://secure.phabricator.com/D12668

+8 -7
+8 -7
scripts/symbols/import_repository_symbols.php
··· 35 35 'be part of a single transaction.'), 36 36 ), 37 37 array( 38 - 'name' => 'more', 38 + 'name' => 'callsign', 39 39 'wildcard' => true, 40 40 ), 41 41 )); 42 42 43 - $more = $args->getArg('more'); 44 - if (count($more) !== 1) { 43 + $callsigns = $args->getArg('callsign'); 44 + if (count($callsigns) !== 1) { 45 45 $args->printHelpAndExit(); 46 46 } 47 47 48 - $callsign = head($more); 49 - $repository = id(new PhabricatorRepository())->loadOneWhere( 50 - 'callsign = %s', 51 - $callsign); 48 + $callsign = head($callsigns); 49 + $repository = id(new PhabricatorRepositoryQuery()) 50 + ->setViewer(PhabricatorUser::getOmnipotentUser()) 51 + ->withCallsigns($callsigns) 52 + ->executeOne(); 52 53 53 54 if (!$repository) { 54 55 echo pht("Repository '%s' does not exist.", $callsign);