1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-14 19:02:41 +01:00
phorge-phorge/src/applications/differential/parser/DifferentialCustomFieldRevertsParser.php
epriestley 592591e715 Clean up various pieces of dead/obsolete Differential code
Summary:
Ref T2222.

  - Removes `DifferentialTasksAttacher`, which has had no callsites for a very long time.
  - Moves `differential.getrevisioncomments` off `DifferentialCommentQuery`.
  - Moves Releeph churn field off `DifferentialCommentQuery`.
  - Removes dead code in `DifferentialRevisionViewController`.
  - Removes `DifferentialException` (no references).
  - Removes `DifferentialRevision->loadComments()` (no callsites).
  - Removes `DifferentialRevision->loadReviewedBy()` (all callsites updated).
  - Removes `DifferentialCommentQuery` (all callsites updated).

Test Plan: Mostly a lot of `grep`.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2222

Differential Revision: https://secure.phabricator.com/D8476
2014-03-11 13:02:19 -07:00

51 lines
887 B
PHP

<?php
final class DifferentialCustomFieldRevertsParser
extends PhabricatorCustomFieldMonogramParser {
protected function getPrefixes() {
// NOTE: Git language is "This reverts commit X."
// NOTE: Mercurial language is "Backed out changeset Y".
return array(
'revert',
'reverts',
'reverted',
'backout',
'backsout',
'backedout',
'back out',
'backs out',
'backed out',
'undo',
'undoes',
);
}
protected function getInfixes() {
return array(
'commit',
'commits',
'change',
'changes',
'changeset',
'changesets',
'rev',
'revs',
'revision',
'revisions',
'diff',
'diffs',
);
}
protected function getSuffixes() {
return array();
}
protected function getMonogramPattern() {
return '[rA-Z0-9a-f]+';
}
}