mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-14 19:02:41 +01:00
592591e715
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
51 lines
887 B
PHP
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]+';
|
|
}
|
|
|
|
}
|