]> khamidou — GitHub mirrors - arcanist.git/commit
Fix a check when deciding to destroy the local branch after "arc land"
authorepriestley <git@epriestley.com>
Wed, 28 Oct 2015 17:03:51 +0000 (10:03 -0700)
committerepriestley <git@epriestley.com>
Wed, 28 Oct 2015 17:10:41 +0000 (10:10 -0700)
commit411a4f4a3917f6916e7e4d1811ae1c8129af6a7a
tree93332be1df09881d995a0cba7e5771ad8d574e27
parentaa5c023fe8fa4b7a770f1e570870b96cf01a70bb
Fix a check when deciding to destroy the local branch after "arc land"

Summary: Fixes T9660. The behavior for this check wasn't quite right -- we want to check the "source ref" (what we're landing) against the "target onto" (the branch we're landing it onto).

Test Plan:
  - Landed from `master` (tracking origin/master). No delete.
  - Landed from `feature1` (tracking local/master). Delete.
  - Landed from `feature2` (tracking origin/master). Delete.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9660

Differential Revision: https://secure.phabricator.com/D14358
src/land/ArcanistGitLandEngine.php