From 8f3a002cdb1907fc0fe8104ca9f7c2dc067e94e5 Mon Sep 17 00:00:00 2001 From: Aviv Eyal Date: Mon, 7 Sep 2015 13:44:47 -0700 Subject: [PATCH] Allow upgrading in branch `stable` Summary: close T9043. This still allows for one dir to be in `master` and the other in `stable`, but hopefully that's not going to be a problem. Test Plan: Clone arc/libph, checkout `stable`, run arc upgrade. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: cburroughs, epriestley Maniphest Tasks: T9043 Differential Revision: https://secure.phabricator.com/D14076 --- src/workflow/ArcanistUpgradeWorkflow.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/workflow/ArcanistUpgradeWorkflow.php b/src/workflow/ArcanistUpgradeWorkflow.php index ed30593f..c9e0e858 100644 --- a/src/workflow/ArcanistUpgradeWorkflow.php +++ b/src/workflow/ArcanistUpgradeWorkflow.php @@ -53,18 +53,18 @@ EOTEXT $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)); -- 2.43.0