Differential D17193 Diff 41346 src/applications/repository/phid/PhabricatorRepositoryCommitPHIDType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/phid/PhabricatorRepositoryCommitPHIDType.php
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | foreach ($handles as $phid => $handle) { | ||||
} else { | } else { | ||||
$full_name = $name; | $full_name = $name; | ||||
} | } | ||||
$handle->setName($name); | $handle->setName($name); | ||||
$handle->setFullName($full_name); | $handle->setFullName($full_name); | ||||
$handle->setURI($commit->getURI()); | $handle->setURI($commit->getURI()); | ||||
$handle->setTimestamp($commit->getEpoch()); | $handle->setTimestamp($commit->getEpoch()); | ||||
$status = $commit->getAuditStatus(); | |||||
$icon = PhabricatorAuditCommitStatusConstants::getStatusIcon($status); | |||||
$color = PhabricatorAuditCommitStatusConstants::getStatusColor($status); | |||||
$name = PhabricatorAuditCommitStatusConstants::getStatusName($status); | |||||
$handle | |||||
->setStateIcon($icon) | |||||
->setStateColor($color) | |||||
->setStateName($name); | |||||
} | } | ||||
} | } | ||||
public static function getCommitObjectNamePattern() { | public static function getCommitObjectNamePattern() { | ||||
$min_unqualified = PhabricatorRepository::MINIMUM_UNQUALIFIED_HASH; | $min_unqualified = PhabricatorRepository::MINIMUM_UNQUALIFIED_HASH; | ||||
$min_qualified = PhabricatorRepository::MINIMUM_QUALIFIED_HASH; | $min_qualified = PhabricatorRepository::MINIMUM_QUALIFIED_HASH; | ||||
return | return | ||||
Show All 26 Lines |