Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15467081
D15300.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D15300.id.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 4, 12:40 PM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7552210
Default Alt Text
D15300.id.diff (2 KB)
Attached To
Mode
D15300: Update import/clear symbols scripts for callsigns
Attached
Detach File
Event Timeline
Log In to Comment