Differential D20309 Diff 48463 src/applications/repository/phid/PhabricatorRepositoryRepositoryPHIDType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/phid/PhabricatorRepositoryRepositoryPHIDType.php
Show All 40 Lines | foreach ($handles as $phid => $handle) { | ||||
$name = $repository->getName(); | $name = $repository->getName(); | ||||
$uri = $repository->getURI(); | $uri = $repository->getURI(); | ||||
$handle | $handle | ||||
->setName($monogram) | ->setName($monogram) | ||||
->setFullName("{$monogram} {$name}") | ->setFullName("{$monogram} {$name}") | ||||
->setURI($uri) | ->setURI($uri) | ||||
->setMailStampName($monogram); | ->setMailStampName($monogram); | ||||
if ($repository->getStatus() !== PhabricatorRepository::STATUS_ACTIVE) { | |||||
$handle->setStatus(PhabricatorObjectHandle::STATUS_CLOSED); | |||||
} | |||||
} | } | ||||
} | } | ||||
public function canLoadNamedObject($name) { | public function canLoadNamedObject($name) { | ||||
return preg_match('/^(r[A-Z]+|R[1-9]\d*)\z/', $name); | return preg_match('/^(r[A-Z]+|R[1-9]\d*)\z/', $name); | ||||
} | } | ||||
public function loadNamedObjects( | public function loadNamedObjects( | ||||
Show All 29 Lines |