getRepositoryPHID(); } public function shouldAppearInPropertyView() { return true; } public function renderPropertyViewValue(array $handles) { return null; } public function shouldAppearInDiffPropertyView() { return true; } public function renderDiffPropertyViewLabel(DifferentialDiff $diff) { return $this->getFieldName(); } public function renderDiffPropertyViewValue(DifferentialDiff $diff) { if (!$diff->getRepositoryPHID()) { return null; } return $this->getViewer()->renderHandle($diff->getRepositoryPHID()); } public function shouldAppearInTransactionMail() { return true; } public function updateTransactionMailBody( PhabricatorMetaMTAMailBody $body, PhabricatorApplicationTransactionEditor $editor, array $xactions) { $repository = $this->getObject()->getRepository(); if ($repository === null) { return; } $body->addTextSection( pht('REPOSITORY'), $repository->getMonogram().' '.$repository->getName()); } public function shouldAppearInListView() { return true; } public function renderOnListItem(PHUIObjectItemView $view) { if ($this->getValue()) { $handle = $this->getViewer()->renderHandle($this->getValue()); $view->addByLine(pht('Repository: %s', $handle)); } } }