]> khamidou — GitHub mirrors - arcanist.git/commit
Don't pull message twice from Conduit in `arc diff`
authorvrana <jakubv@fb.com>
Tue, 16 Oct 2012 18:51:15 +0000 (11:51 -0700)
committervrana <jakubv@fb.com>
Tue, 16 Oct 2012 19:53:59 +0000 (12:53 -0700)
commita850f1c6ef07dbd432f97a4b32312ca6fc43ec2d
tree7e2f935e4564d7ae679058963f457d713ce1fe2a
parent485660831eb006580ddf13a8e23a064db6c4ebb5
Don't pull message twice from Conduit in `arc diff`

Summary:
We currently pull message from Conduit twice in `arc diff` update.
Once in `buildCommitMessage()` and once in `buildRevisionFromCommitMessage()`.
Remeber that we already pulled it (and so it is authoritative) to save this call.

Even faster solution would be to not pull and update the message at all in common (non-`--edit`, non-`--verbatim` and such) update workflows but it's more involved.

Test Plan:
  $ arc diff --trace

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3716
src/workflow/ArcanistDiffWorkflow.php