]> khamidou — GitHub mirrors - arcanist.git/commit
Fix "arc branch" to work if you are on "(no branch)" add revision IDs
authorepriestley <git@epriestley.com>
Wed, 29 Jun 2011 20:21:30 +0000 (13:21 -0700)
committerepriestley <git@epriestley.com>
Wed, 29 Jun 2011 20:30:44 +0000 (13:30 -0700)
commit4a8e247e668a70c13e65da25ff2c69f1831d3143
tree1e65d138715820f2a17c3e0b720f5b07be1a6341
parentffeeeb8c55a94ac5d23abe03629442d765bd3324
Fix "arc branch" to work if you are on "(no branch)" add revision IDs

Summary:
If you checkout some commit you end up on "(no branch)" which currently breaks
the parser. Ignore that, and add revision IDs to the output. They aren't very
big and I hate flags so I didn't add a flag for this. You can add a flag to turn
them off if you really want.

Test Plan:
Ran "arc branch" and "arc branch --by-status" from a "(no branch)" working copy.

Reviewed By: slawekbiel
Reviewers: slawekbiel, ahupp, jungejason, tuomaspelkonen, aran, schrockn
CC: aran, slawekbiel
Differential Revision: 555
src/branch/BranchInfo.php
src/repository/api/git/ArcanistGitAPI.php
src/workflow/branch/ArcanistBranchWorkflow.php