Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialRevision.php
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | $view_policy = $app->getPolicy( | ||||
| DifferentialDefaultViewCapability::CAPABILITY); | DifferentialDefaultViewCapability::CAPABILITY); | ||||
| return id(new DifferentialRevision()) | return id(new DifferentialRevision()) | ||||
| ->setViewPolicy($view_policy) | ->setViewPolicy($view_policy) | ||||
| ->setAuthorPHID($actor->getPHID()) | ->setAuthorPHID($actor->getPHID()) | ||||
| ->attachRepository(null) | ->attachRepository(null) | ||||
| ->attachActiveDiff(null) | ->attachActiveDiff(null) | ||||
| ->attachReviewers(array()) | ->attachReviewers(array()) | ||||
| ->setStatus(ArcanistDifferentialRevisionStatus::NEEDS_REVIEW); | ->setModernRevisionStatus(DifferentialRevisionStatus::NEEDS_REVIEW); | ||||
| } | } | ||||
| protected function getConfiguration() { | protected function getConfiguration() { | ||||
| return array( | return array( | ||||
| self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
| self::CONFIG_SERIALIZATION => array( | self::CONFIG_SERIALIZATION => array( | ||||
| 'attached' => self::SERIALIZATION_JSON, | 'attached' => self::SERIALIZATION_JSON, | ||||
| 'unsubscribed' => self::SERIALIZATION_JSON, | 'unsubscribed' => self::SERIALIZATION_JSON, | ||||
| ▲ Show 20 Lines • Show All 878 Lines • Show Last 20 Lines | |||||