]> khamidou — GitHub mirrors - arcanist.git/commit
Break arc land run() into smaller functions
authordurham <durham@fb.com>
Mon, 3 Dec 2012 21:03:13 +0000 (13:03 -0800)
committerdurham <durham@fb.com>
Mon, 3 Dec 2012 21:03:13 +0000 (13:03 -0800)
commit3602d2aa15fdaa9fc60eb1668d0d0375799927c3
treec0c4bebcf90cf79c941cde5d21ac47d458e0eeee
parentb549f565c90f154dc57714fc42236d69631120b1
Break arc land run() into smaller functions

Summary:
Refactor the arc land code into several
functions so it's easier to maintain. This is in
preparation for adding hg support to arc land
in my next commit.

Without this refactor, adding hg support makes the run()
function too big.

Test Plan:
Set up a git repo and clone with a branch scenario.
Example: https://secure.phabricator.com/P614
Ran and verified:
arc land
arc land --keep-branch
arc land --merge
arc land --merge --keep-branch
arc land --hold
arc land --revision <another phabricator rev>

Reviewers: epriestley

Reviewed By: epriestley

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