]> khamidou — GitHub mirrors - arcanist.git/commit
Allow checking out branches in `arc branch`
authorvrana <jakubv@fb.com>
Wed, 12 Dec 2012 22:01:26 +0000 (14:01 -0800)
committervrana <jakubv@fb.com>
Wed, 19 Dec 2012 00:13:22 +0000 (16:13 -0800)
commit2871d00f9606d412376ba836e8a12afc29f240cc
treee7c1a0e400478f4b2451c22ac12e961b42713e99
parent955c5b88209b0f5cdbcd7ea498adb211ef3dde0b
Allow checking out branches in `arc branch`

Summary:
The main added value is loading the branch name from revision.
Sometimes I know the revision ID but I don't know the branch name.

The missing piece is the starting point of the branch.
I was thinking about using `arc.land.onto.default` but we also need to get 'origin'.

This is also the last step of a simple workflow where underlying VCS is not abstracted away.
In future, we can implement this for other APIs.

Test Plan:
  $ arc branch new_branch
  $ arc branch new_branch
  $ arc branch D4168

Reviewers: epriestley

Reviewed By: epriestley

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