]> khamidou — GitHub mirrors - arcanist.git/commit
Improve `arc land` recovery from issues with the remote.
authorepriestley <git@epriestley.com>
Fri, 21 Dec 2012 22:18:07 +0000 (14:18 -0800)
committerepriestley <git@epriestley.com>
Fri, 21 Dec 2012 22:18:07 +0000 (14:18 -0800)
commitcffe1942ecd4d73cc7a287d30ffbdefe3e836a36
treed6330a157dd17bca31aa7dc812440731472f00fd
parentf830b3bf3f8f9194c8cfcbe0835ab09d26e345e5
Improve `arc land` recovery from issues with the remote.

Summary:
Fixes T2138.

  - When a pull fails, restore the original branch.
  - When a push fails, complain about it really loudly.

NOTE: No test plan for push yet since I'm not sure this is the right remedy, see T2138 for discsusion.

Test Plan:
  - Tested pull by changing "git pull" to "git xxpull" and running "arc land". Saw the pull fail and my original branch restored.

Reviewers: vrana, aran

Reviewed By: vrana

Maniphest Tasks: T2138

Differential Revision: https://secure.phabricator.com/D4265
src/workflow/ArcanistLandWorkflow.php