]> khamidou — GitHub mirrors - arcanist.git/commit
Refactor ArcanistDiffWorkflow to be a little more manageable
authorepriestley <git@epriestley.com>
Thu, 5 Jan 2012 19:26:17 +0000 (11:26 -0800)
committerepriestley <git@epriestley.com>
Thu, 5 Jan 2012 20:59:05 +0000 (12:59 -0800)
commit560b339ad3b4af4667ae1abd2f59b2dfe7fedf74
treeb0186b2f31dcc4d69031fe767e6aa8821a64668b
parent6f27c9e69382efa5b2a97b85b32a8f13c7aff5f6
Refactor ArcanistDiffWorkflow to be a little more manageable

Summary:
I want to make some changes to this workflow but it a huge mess right now. Try
to refactor a bit to make it a little more manageable.

Broadly:

  - Moved lint/unit constant mapping into separate methods.
  - Moved lint/unit/local properties into separate methods.
  - Moved diff spec construction into a separate method.
  - Moved some message stuff into separate methods and reorganized related
methods near to one another.
  - Removed an unused findRevisionInformation() method.

I fixed a couple of small bugs, too:

  - --create now conflicts with --only and --preview.
  - --create now probably works in Mercurial.
  - --create messages now have basic reviewer validation.

This should have not have any significant behavioral changes.

Test Plan:
  - Created this revision.
  - Ran "arc diff --create".

Reviewers: btrahan, jungejason

Reviewed By: btrahan

CC: aran, btrahan, epriestley
Differential Revision: https://secure.phabricator.com/D1320
src/workflow/diff/ArcanistDiffWorkflow.php