Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14006378
D20916.id49839.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D20916.id49839.diff
View Options
diff --git a/src/workflow/ArcanistUpgradeWorkflow.php b/src/workflow/ArcanistUpgradeWorkflow.php
--- a/src/workflow/ArcanistUpgradeWorkflow.php
+++ b/src/workflow/ArcanistUpgradeWorkflow.php
@@ -30,6 +30,13 @@
'arcanist' => dirname(phutil_get_library_root('arcanist')),
);
+ $supported_branches = array(
+ 'master',
+ 'stable',
+ 'experimental',
+ );
+ $supported_branches = array_fuse($supported_branches);
+
foreach ($roots as $lib => $root) {
echo phutil_console_format(
"%s\n",
@@ -76,18 +83,16 @@
}
$branch_name = $repository->getBranchName();
- if ($branch_name != 'master' && $branch_name != 'stable') {
+ if (!isset($supported_branches[$branch_name])) {
throw new ArcanistUsageException(
pht(
- "%s must be on either branch '%s' or '%s' to be automatically ".
- "upgraded. ".
- "This copy of %s (in '%s') is on branch '%s'.",
- $lib,
- 'master',
- 'stable',
+ 'Library "%s" (in "%s") is on branch "%s", but this branch is '.
+ 'not supported for automatic upgrades. Supported branches are: '.
+ '%s.',
$lib,
$root,
- $branch_name));
+ $branch_name,
+ implode(', ', array_keys($supported_branches))));
}
chdir($root);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 29, 7:55 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6745598
Default Alt Text
D20916.id49839.diff (1 KB)
Attached To
Mode
D20916: Allow "arc upgrade" to work on the "experimental" branch
Attached
Detach File
Event Timeline
Log In to Comment