]> khamidou — GitHub mirrors - arcanist.git/commit
With `--verbatim`, update some fields automatically when updating revisions
authorepriestley <git@epriestley.com>
Mon, 7 May 2012 15:16:29 +0000 (08:16 -0700)
committerepriestley <git@epriestley.com>
Mon, 7 May 2012 15:16:29 +0000 (08:16 -0700)
commit0253bb9475cca9c7557e797e26eaf5e1c688a436
treebc6b28e31a4810aeadd473eaa4011df63bdfefb9
parentd40a30f10f147f8ccf0f8c8683a2359e4c1360f2
With `--verbatim`, update some fields automatically when updating revisions

Summary:
Essentially D2391, but with, uh, more comments?

  - I forgot that we already implemented shouldOverwriteWhenCommitMessageIsEdited(). This patch already behaves nearly correctly.
  - Requires changes in D2412.
  - Use `'edit' => 'edit'`, which does the same thing as `'edit' => true`, but is more correct after the "edit" / "create" split.
  - Under "--verbatim", always get the message "from the user", which means "from the working copy" because verbtatim disables the editor part.

Test Plan:
      - Created and updated revisions with `arc diff`.
      - Created and updated revisions with `arc diff --verbatim`.
      - Updated revisions with `arc diff --edit`.

Reviewers: jungejason, btrahan

Reviewed By: jungejason

CC: vrana, aran
Differential Revision: https://secure.phabricator.com/D2411
src/workflow/base/ArcanistBaseWorkflow.php
src/workflow/diff/ArcanistDiffWorkflow.php