Page MenuHomePhabricator

D14076.diff
No OneTemporary

D14076.diff

diff --git a/src/workflow/ArcanistUpgradeWorkflow.php b/src/workflow/ArcanistUpgradeWorkflow.php
--- a/src/workflow/ArcanistUpgradeWorkflow.php
+++ b/src/workflow/ArcanistUpgradeWorkflow.php
@@ -53,18 +53,18 @@
$this->setRepositoryAPI($repository);
- // Require no local changes.
$this->requireCleanWorkingCopy();
- // Require the library be on master.
$branch_name = $repository->getBranchName();
- if ($branch_name != 'master') {
+ if ($branch_name != 'master' && $branch_name != 'stable') {
throw new ArcanistUsageException(
pht(
- "%s must be on branch '%s' to be automatically upgraded. ".
+ "%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',
$lib,
$root,
$branch_name));

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 20, 9:53 AM (3 d, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7710578
Default Alt Text
D14076.diff (973 B)

Event Timeline