]> khamidou — GitHub mirrors - arcanist.git/commit
Performance improvements for linting in an HG repo.
authorkeegancsmith <keegancsmith@fb.com>
Wed, 7 Nov 2012 03:30:08 +0000 (19:30 -0800)
committerepriestley <git@epriestley.com>
Wed, 7 Nov 2012 18:24:28 +0000 (10:24 -0800)
commit0a6444790d3d27f2af84f9d01e143ce74ea26fd5
tree45d7a8ff5537abb3dbe28443755473095d0cb9c7
parentac92f9bdfc7a72e5e2106f8e56ef086568397835
Performance improvements for linting in an HG repo.

Summary:
Run `hg status` as a Future while getting the diff. Add a cache for
getRawDiffText().

Test Plan:
Run `arc lint --trace` on a HG repo and confirm that `diff` is only called once
and `status` is run in the background.

Reviewers: epriestley

Reviewed By: epriestley

CC: yliang, dpepper, aran, Korvin
Maniphest Tasks: T2016

Differential Revision: https://secure.phabricator.com/D3913
src/repository/api/ArcanistMercurialAPI.php