]> khamidou — GitHub mirrors - arcanist.git/commit
Improve default fill of Differential messages from commits
authorepriestley <git@epriestley.com>
Tue, 22 May 2012 18:08:57 +0000 (11:08 -0700)
committerepriestley <git@epriestley.com>
Tue, 22 May 2012 18:08:57 +0000 (11:08 -0700)
commit04606d2833ac0b2d79a6887df297a508bb955be1
tree614f19fa4e1939004d875088830844a5d9688cdf
parent6e87de7304ce384a3166d2cc56c29f0876f7bbae
Improve default fill of Differential messages from commits

Summary:
  - When you run "arc diff" in Mercurial, we currently give you an empty template. Instead, prefill a likely template by parsing messages, as we do for Git.
  - Unify Git and Mercurial logic for acquiring messages, since `getLocalCommitInformation()` now provides this information. This should improve Git performance, and allows us to delete some code.
  - Merge messages more intelligently. Currently, we just overwrite fields. Instead, merge arrays (like ccs, reviewers, tasks) and concatenate strings (like summary and test plan). We need to special case "title", see inline.
  - @csilvers: this is a precursor to implementing "--reviewers", etc.

Test Plan: See next post, test plan includes giant output.

Reviewers: btrahan, csilvers, Makinde, jungejason, vrana

Reviewed By: csilvers

CC: aran
Differential Revision: https://secure.phabricator.com/D2536
src/repository/api/mercurial/ArcanistMercurialAPI.php
src/workflow/diff/ArcanistDiffWorkflow.php