]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix "arc branch" performance regression
authorepriestley <git@epriestley.com>
Wed, 11 Jul 2012 23:55:29 +0000 (16:55 -0700)
committerepriestley <git@epriestley.com>
Wed, 11 Jul 2012 23:55:29 +0000 (16:55 -0700)
Summary: See discussion in T1467. This `log` logs everything in the repo. The old command was `show -s`, I just unthinkingly converted it and it doesn't matter for non-Facebook-sized repositories.

Test Plan: Ran "arc branch".

Reviewers: btrahan

Reviewed By: btrahan

CC: aran
Maniphest Tasks: T1467

Differential Revision: https://secure.phabricator.com/D2963

src/workflow/ArcanistBranchWorkflow.php

index 1f07aa925b1fe750b96d63bbca9ca34c98679210..6d786805bb9999fdc00486ed9648981d69064b9c 100644 (file)
@@ -99,9 +99,13 @@ EOTEXT
     array $branches,
     ArcanistRepositoryAPI $repository_api) {
 
+    // NOTE: "-s" is an option deep in git's diff argument parser that doesn't
+    // seem to have much documentation and has no long form. It suppresses any
+    // diff output.
+
     $commits = ipull($branches, 'hash');
     list($info) = $repository_api->execxLocal(
-      'log --format=%C %Ls --',
+      'show -s --format=%C %Ls',
       '%H%x01%ct%x01%T%x01%s%n%b%x02',
       $commits);