1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 14:52:40 +01:00
phorge-arcanist/src
epriestley a2ab38df78 Improve performance of arc branch in Git with many branches
Summary:
This is mostly just a personal quality-of-life fix. I run this command fairly often and having it return a little faster is nice.

This replaces a `git show` for each individual branch with a big `git for-each-ref` which we were already running anyway. This is quite a bit faster.

This command also occasionally hangs or segfaults for me while executing the huge pile of subprocesses. This is unreliable to reproduce, probably some bug in some PHP extension I have, and likely hard to narrow down, and this approach is better in every way anyway.

Test Plan:
  - Ran `arc branch` in Git, observed faster output (in my `phabricator/`, about 2000ms -> 1200ms).
  - Ran `arc feature` in Mercurial.

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D15735
2016-04-16 16:39:32 -07:00
..
__tests__ Use PhutilLibraryTestCase 2015-01-07 07:37:59 +11:00
configuration Fix an issue with "arc nrabch" 2015-09-15 11:14:07 -07:00
difference Extend from Phobject 2015-06-15 15:47:33 +10:00
differential Extend from Phobject 2015-06-15 15:47:33 +10:00
docs/book Minor documentation improvements 2015-06-08 11:31:35 +10:00
events/constant Remove @group annotations 2014-07-09 09:12:13 +10:00
exception pht all the things 2015-05-13 21:00:53 +10:00
extensions Changes to Arcanist for libphutil "extensions/" 2013-04-22 14:38:49 -07:00
hgdaemon Extend from Phobject 2015-06-15 15:47:33 +10:00
internationalization Various translation improvements 2015-11-02 21:31:04 +11:00
land Add --quiet to git fetch on arc land 2016-02-10 14:00:24 -08:00
lint Cleans up some minor issues in cpplint 2016-01-15 08:19:23 -08:00
parser Linter fixes 2015-12-07 21:35:34 +11:00
repository Improve performance of arc branch in Git with many branches 2016-04-16 16:39:32 -07:00
unit Filter out some Clover coverage to prevent false positives 2016-02-24 12:58:07 -08:00
upload When pushing changes to staging, also push the base commit 2016-03-07 06:53:49 -08:00
workflow Improve performance of arc branch in Git with many branches 2016-04-16 16:39:32 -07:00
workingcopyidentity Extend from Phobject 2015-06-15 15:47:33 +10:00
__phutil_library_init__.php Delete license headers from files 2012-11-05 11:16:24 -08:00
__phutil_library_map__.php Add a linter rule for use of is_a 2015-12-23 08:44:39 +11:00