Differential D21443 Diff 51080 src/applications/repository/storage/PhabricatorRepositoryCommitData.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryCommitData.php
| Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | public function newPublisherHoldReasons() { | ||||
| foreach ($holds as $key => $reason) { | foreach ($holds as $key => $reason) { | ||||
| $holds[$key] = PhabricatorRepositoryPublisherHoldReason::newForHoldKey( | $holds[$key] = PhabricatorRepositoryPublisherHoldReason::newForHoldKey( | ||||
| $reason); | $reason); | ||||
| } | } | ||||
| return array_values($holds); | return array_values($holds); | ||||
| } | } | ||||
| public function setCommitRef(DiffusionCommitRef $ref) { | |||||
| $this->setCommitDetail('commitRef', $ref->newDictionary()); | |||||
| } | |||||
| public function newCommitRef() { | |||||
| $map = $this->getCommitDetail('commitRef', array()); | |||||
| return DiffusionCommitRef::neWFromDictionary($map); | |||||
| } | |||||
| } | } | ||||