Differential D21515 Diff 51209 src/applications/repository/storage/PhabricatorRepositoryRefCursor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryRefCursor.php
| Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | final class PhabricatorRepositoryRefCursor | ||||
| public function getPositions() { | public function getPositions() { | ||||
| return $this->assertAttached($this->positions); | return $this->assertAttached($this->positions); | ||||
| } | } | ||||
| public function getPositionIdentifiers() { | public function getPositionIdentifiers() { | ||||
| return mpull($this->getPositions(), 'getCommitIdentifier'); | return mpull($this->getPositions(), 'getCommitIdentifier'); | ||||
| } | } | ||||
| public function newDiffusionRepositoryRef() { | |||||
| return id(new DiffusionRepositoryRef()) | |||||
| ->setRefType($this->getRefType()) | |||||
| ->setShortName($this->getRefName()); | |||||
| } | |||||
| /* -( PhabricatorPolicyInterface )----------------------------------------- */ | /* -( PhabricatorPolicyInterface )----------------------------------------- */ | ||||
| public function getCapabilities() { | public function getCapabilities() { | ||||
| return array( | return array( | ||||
| PhabricatorPolicyCapability::CAN_VIEW, | PhabricatorPolicyCapability::CAN_VIEW, | ||||
| ); | ); | ||||
| Show All 15 Lines | |||||