]> khamidou — GitHub mirrors - arcanist.git/commit
Speedup `arc branch`
authorvrana <jakubv@fb.com>
Wed, 18 Jul 2012 23:50:49 +0000 (16:50 -0700)
committervrana <jakubv@fb.com>
Thu, 19 Jul 2012 01:01:44 +0000 (18:01 -0700)
commitcd2f8edb8368466ad7e93c9a09af2ce8a0957f65
tree156e7b411d2b65fbaeeed5b3454f2e4aefbd4878
parent9997dd7830d9a6ece14db56cbba3443305955c2c
Speedup `arc branch`

Summary:
This reduces time of `arc branch` from 13s to 7s in my repo which is faster than `git branch --verbose` (10s).

The price for this speedup is that we loose the information [ahead 1, behind 21242] but we showed it only in branches with no revision so it's not a big deal.

Test Plan:
  $ arc branch

Reviewers: epriestley

Reviewed By: epriestley

CC: ahupp, aran, Korvin
Differential Revision: https://secure.phabricator.com/D3005
src/repository/api/ArcanistGitAPI.php
src/workflow/ArcanistBranchWorkflow.php