]> khamidou — GitHub mirrors - arcanist.git/commit
add arc land hg support for landing with nested branches
authordurham <durham@fb.com>
Thu, 6 Dec 2012 03:31:25 +0000 (19:31 -0800)
committerdurham <durham@fb.com>
Fri, 14 Dec 2012 19:23:44 +0000 (11:23 -0800)
commitf476d1a0c53590118d6b2592203fb2d8d990fe59
tree4d766297f5a140648f8c37e5f11976aff6e80501
parent2d7224f0e36c61112d3eafda3788aeed9edbfea8
add arc land hg support for landing with nested branches

Summary:
This changes arc land's hg support to allow you to land a branch or bookmark that has nested branches/bookmarks.  Example:

      // Initial state:
      // -a--------b  master
      //   \
      //    w--x  mybranch
      //        \--y  subbranch1
      //         \--z  subbranch2
      //
      // arc land --branch mybranch --onto master :
      // -a--b--wx  master
      //          \--y  subbranch1
      //           \--z  subbranch2

Test Plan:
Created several repos like in the summary and ran 'arc land' and 'arc land --keep-branch'. Did this with both bookmarks and named branches. Scenarios tested:

- mybranch having no child commits
- mybranch having a child branch with several commits
- mybranch having two child branches
- mybranch having a child branch which has two more child branches

No code was added outside of a "if ($this->isHg)" so I didn't run git arc land.

Reviewers: epriestley, dschleimer, bos, sid0

Reviewed By: dschleimer

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4089
src/workflow/ArcanistLandWorkflow.php