]> khamidou — GitHub mirrors - arcanist.git/commit
Simplify "arc branch" and make it work in immutable history repositories
authorepriestley <git@epriestley.com>
Tue, 26 Jun 2012 17:50:43 +0000 (10:50 -0700)
committerepriestley <git@epriestley.com>
Tue, 26 Jun 2012 17:50:43 +0000 (10:50 -0700)
commit69246b282dcc3ee2c0c9e1794405aa6e217a124c
tree758dfc9583365532cf367fbbbfdd7e01a0eb4bea
parentacf5350221c28b29e1595723202eb2fbb09e6723
Simplify "arc branch" and make it work in immutable history repositories

Summary:
  - Move "arc branch"-specific code to the branch workflow.
  - Instead of doing "git rev-parse", just do "git branch --verbose --abbrev=40".
  - Use revision owners to identify ownership, not working copy identity. Particularly with the advent of "Commandeer", you might not own commits you made.
  - Do a batch lookup for commits by hash (depends on D2859, but doesn't break without it).
  - Use PhutilConsole for console stuff.
  - Removed color from "arc list" for the moment.
  - The "--by-status" flag has a slightly different output format now.

Test Plan: Ran "arc branch" in various circumstances, verified it identifies branches in immutable history repositories.

Reviewers: btrahan, vrana, jungejason, nh, slawekbiel

Reviewed By: slawekbiel

CC: aran
Maniphest Tasks: T693

Differential Revision: https://secure.phabricator.com/D2860
src/__phutil_library_map__.php
src/branch/BranchInfo.php [deleted file]
src/repository/api/ArcanistGitAPI.php
src/workflow/ArcanistBranchWorkflow.php
src/workflow/ArcanistListWorkflow.php