Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / releeph / field / specification / ReleephDiffMessageFieldSpecification.php
blobcde4ab95ddc6265540e55be5fb9eba182c51cc24
1 <?php
3 final class ReleephDiffMessageFieldSpecification
4 extends ReleephFieldSpecification {
6 public function getFieldKey() {
7 return 'commit:message';
10 public function getName() {
11 return pht('Message');
14 public function getStyleForPropertyView() {
15 return 'block';
18 public function renderPropertyViewValue(array $handles) {
19 return phutil_tag(
20 'div',
21 array(
22 'class' => 'phabricator-remarkup',
24 $this->getMarkupEngineOutput());
27 public function shouldMarkup() {
28 return true;
31 public function getMarkupText($field) {
32 $commit_data = $this
33 ->getReleephRequest()
34 ->loadPhabricatorRepositoryCommitData();
35 if ($commit_data) {
36 return $commit_data->getCommitMessage();
37 } else {
38 return '';