1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-23 02:38:48 +02:00
phorge-phorge/src/applications/differential/field/specification
epriestley 0be3db03ee Drive Differential commit message parsing through extensible fields
Summary:
I think this is the last major step -- use the fields to parse commit messages,
not a hard-coded list of stuff. This adds two primary methods to fields, one to
get all the labels they'll parse (so we can do "CC" and "CCs" and treat them as
the same field) and one to parse the string into a canonical representation
(e.g., lookup reviewers and such).

You'll need to impelement the one block of task-specific stuff I removed in
Facebook's task field:

  list($pre_comment) = split(' -- ', $data);
  $data = array_filter(preg_split('/[^\d]+/', $pre_comment));
  foreach ($data as $k => $v) {
    $data[$k] = (int)$v;
  }
  $data = array_unique($data);
  break;

Otherwise I think this is clean.

Test Plan:
  - Called the conduit method with various commit messages, parsed fields/errors
seemed correct.
  - "arc diff"'d this diff onto localhost, then updated it.
  - "arc amend"'d this diff.

Reviewers: jungejason, tuomaspelkonen, aran

Reviewed By: jungejason

CC: aran, jungejason, epriestley

Differential Revision: 829
2011-08-18 19:49:39 -07:00
..
applypatch Move Differential's simple fields to the extensible field schema 2011-08-15 08:39:48 -07:00
arcanistproject Move Differential's read-only fields to the extensible field schema 2011-08-15 08:39:58 -07:00
author Move Differential's read-only fields to the extensible field schema 2011-08-15 08:39:58 -07:00
base Drive Differential commit message parsing through extensible fields 2011-08-18 19:49:39 -07:00
blamerev Drive Differential commit message parsing through extensible fields 2011-08-18 19:49:39 -07:00
ccs Drive Differential commit message parsing through extensible fields 2011-08-18 19:49:39 -07:00
commits Move Differential's read-only fields to the extensible field schema 2011-08-15 08:39:58 -07:00
dependencies Move Differential's read-only fields to the extensible field schema 2011-08-15 08:39:58 -07:00
exportpatch Move Differential's simple fields to the extensible field schema 2011-08-15 08:39:48 -07:00
gitsvnid Drive Differential commit message parsing through extensible fields 2011-08-18 19:49:39 -07:00
host Move Differential's simple fields to the extensible field schema 2011-08-15 08:39:48 -07:00
lines Move Differential's simple fields to the extensible field schema 2011-08-15 08:39:48 -07:00
lint Move Differential's remaining field views to extensble field schema 2011-08-15 10:20:46 -07:00
maniphesttasks Move Differential's read-only fields to the extensible field schema 2011-08-15 08:39:58 -07:00
path Move Differential's simple fields to the extensible field schema 2011-08-15 08:39:48 -07:00
revertplan Drive Differential commit message parsing through extensible fields 2011-08-18 19:49:39 -07:00
reviewedby Drive Differential commit message parsing through extensible fields 2011-08-18 19:49:39 -07:00
reviewers Drive Differential commit message parsing through extensible fields 2011-08-18 19:49:39 -07:00
revisionid Drive Differential commit message parsing through extensible fields 2011-08-18 19:49:39 -07:00
revisionstatus Move Differential's remaining field views to extensble field schema 2011-08-15 10:20:46 -07:00
summary Drive Differential commit message parsing through extensible fields 2011-08-18 19:49:39 -07:00
testplan Drive Differential commit message parsing through extensible fields 2011-08-18 19:49:39 -07:00
title Drive Differential commit message parsing through extensible fields 2011-08-18 19:49:39 -07:00
unit Move Differential's remaining field views to extensble field schema 2011-08-15 10:20:46 -07:00