Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryCommit.php
Show All 30 Lines | final class PhabricatorRepositoryCommit | ||||
protected $summary = ''; | protected $summary = ''; | ||||
protected $importStatus = 0; | protected $importStatus = 0; | ||||
const IMPORTED_MESSAGE = 1; | const IMPORTED_MESSAGE = 1; | ||||
const IMPORTED_CHANGE = 2; | const IMPORTED_CHANGE = 2; | ||||
const IMPORTED_PUBLISH = 8; | const IMPORTED_PUBLISH = 8; | ||||
const IMPORTED_ALL = 11; | const IMPORTED_ALL = 11; | ||||
const IMPORTED_CLOSEABLE = 1024; | const IMPORTED_PERMANENT = 1024; | ||||
const IMPORTED_UNREACHABLE = 2048; | const IMPORTED_UNREACHABLE = 2048; | ||||
private $commitData = self::ATTACHABLE; | private $commitData = self::ATTACHABLE; | ||||
private $audits = self::ATTACHABLE; | private $audits = self::ATTACHABLE; | ||||
private $repository = self::ATTACHABLE; | private $repository = self::ATTACHABLE; | ||||
private $customFields = self::ATTACHABLE; | private $customFields = self::ATTACHABLE; | ||||
private $authorIdentity = self::ATTACHABLE; | private $authorIdentity = self::ATTACHABLE; | ||||
private $committerIdentity = self::ATTACHABLE; | private $committerIdentity = self::ATTACHABLE; | ||||
▲ Show 20 Lines • Show All 414 Lines • ▼ Show 20 Lines | public function isAuditStatusPartiallyAudited() { | ||||
return $this->getAuditStatusObject()->isPartiallyAudited(); | return $this->getAuditStatusObject()->isPartiallyAudited(); | ||||
} | } | ||||
public function isAuditStatusAudited() { | public function isAuditStatusAudited() { | ||||
return $this->getAuditStatusObject()->isAudited(); | return $this->getAuditStatusObject()->isAudited(); | ||||
} | } | ||||
public function isPermanentCommit() { | public function isPermanentCommit() { | ||||
return (bool)$this->isPartiallyImported(self::IMPORTED_CLOSEABLE); | return (bool)$this->isPartiallyImported(self::IMPORTED_PERMANENT); | ||||
} | } | ||||
public function newCommitAuthorView(PhabricatorUser $viewer) { | public function newCommitAuthorView(PhabricatorUser $viewer) { | ||||
$author_phid = $this->getAuthorDisplayPHID(); | $author_phid = $this->getAuthorDisplayPHID(); | ||||
if ($author_phid) { | if ($author_phid) { | ||||
$handles = $viewer->loadHandles(array($author_phid)); | $handles = $viewer->loadHandles(array($author_phid)); | ||||
return $handles[$author_phid]->renderLink(); | return $handles[$author_phid]->renderLink(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 491 Lines • Show Last 20 Lines |