1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 10:22:42 +01:00
phorge-phorge/src/applications/differential/parser/DifferentialCustomFieldRevertsParser.php

52 lines
887 B
PHP
Raw Normal View History

<?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]+';
}
}