Page MenuHomePhabricator

D15300.id36907.diff
No OneTemporary

D15300.id36907.diff

diff --git a/scripts/symbols/clear_repository_symbols.php b/scripts/symbols/clear_repository_symbols.php
--- a/scripts/symbols/clear_repository_symbols.php
+++ b/scripts/symbols/clear_repository_symbols.php
@@ -6,7 +6,7 @@
$args = new PhutilArgumentParser($argv);
$args->setSynopsis(<<<EOSYNOPSIS
-**clear_repository_symbols.php** [__options__] __callsign__
+**clear_repository_symbols.php** [__options__] __repository__
Clear repository symbols.
EOSYNOPSIS
@@ -15,24 +15,26 @@
$args->parse(
array(
array(
- 'name' => 'callsign',
+ 'name' => 'repository',
'wildcard' => true,
),
));
-$callsigns = $args->getArg('callsign');
-if (count($callsigns) !== 1) {
+$identifiers = $args->getArg('repository');
+if (count($identifiers) !== 1) {
$args->printHelpAndExit();
}
-$callsign = head($callsigns);
+$identifier = head($identifiers);
$repository = id(new PhabricatorRepositoryQuery())
->setViewer(PhabricatorUser::getOmnipotentUser())
- ->withCallsigns($callsigns)
+ ->withIdentifiers($identifiers)
->executeOne();
if (!$repository) {
- echo pht("Repository '%s' does not exist.", $callsign);
+ echo tsprintf(
+ "%s\n",
+ pht('Repository "%s" does not exist.', $identifier));
exit(1);
}
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
@@ -6,7 +6,7 @@
$args = new PhutilArgumentParser($argv);
$args->setSynopsis(<<<EOSYNOPSIS
-**import_repository_symbols.php** [__options__] __callsign__ < symbols
+**import_repository_symbols.php** [__options__] __repository__ < symbols
Import repository symbols (symbols are read from stdin).
EOSYNOPSIS
@@ -35,24 +35,26 @@
'be part of a single transaction.'),
),
array(
- 'name' => 'callsign',
+ 'name' => 'repository',
'wildcard' => true,
),
));
-$callsigns = $args->getArg('callsign');
-if (count($callsigns) !== 1) {
+$identifiers = $args->getArg('repository');
+if (count($identifiers) !== 1) {
$args->printHelpAndExit();
}
-$callsign = head($callsigns);
+$identifier = head($identifiers);
$repository = id(new PhabricatorRepositoryQuery())
->setViewer(PhabricatorUser::getOmnipotentUser())
- ->withCallsigns($callsigns)
+ ->withIdentifiers($identifiers)
->executeOne();
if (!$repository) {
- echo pht("Repository '%s' does not exist.", $callsign);
+ echo tsprintf(
+ "%s\n",
+ pht('Repository "%s" does not exist.', $identifier));
exit(1);
}

File Metadata

Mime Type
text/plain
Expires
Mar 16 2025, 11:57 PM (5 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7552210
Default Alt Text
D15300.id36907.diff (2 KB)

Event Timeline