]> khamidou — GitHub mirrors - arcanist.git/commit
Compute lint cache key before linting
authorJakub Vrana <jakub@vrana.cz>
Mon, 11 Mar 2013 01:49:02 +0000 (18:49 -0700)
committerJakub Vrana <jakub@vrana.cz>
Mon, 11 Mar 2013 05:31:13 +0000 (22:31 -0700)
commit4fd8b8883316b3ee1c8e8af5d1b3f3381c8d1eeb
tree71d3dd62a91d3acc1cd32542ff6c4de973995160
parenta925ef9dc197cf069f64d25f0339855d20cc7b7e
Compute lint cache key before linting

Summary: If user changes the file contents during linting (usually when prompted to apply a patch) then we save the old messages to the new file contents. Fix that by computing the hash before linting (or after applying patch).

Test Plan: Changed the file during linting, verified that the file hash didn't change.

Reviewers: epriestley

Reviewed By: epriestley

CC: ptarjan, aran, Korvin
Differential Revision: https://secure.phabricator.com/D5320
src/workflow/ArcanistLintWorkflow.php