Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | final class PhabricatorRepository extends PhabricatorRepositoryDAO | ||||
| protected $uuid; | protected $uuid; | ||||
| protected $viewPolicy; | protected $viewPolicy; | ||||
| protected $editPolicy; | protected $editPolicy; | ||||
| protected $pushPolicy; | protected $pushPolicy; | ||||
| protected $versionControlSystem; | protected $versionControlSystem; | ||||
| protected $details = array(); | protected $details = array(); | ||||
| protected $credentialPHID; | protected $credentialPHID; | ||||
| protected $almanacServicePHID; | |||||
| private $commitCount = self::ATTACHABLE; | private $commitCount = self::ATTACHABLE; | ||||
| private $mostRecentCommit = self::ATTACHABLE; | private $mostRecentCommit = self::ATTACHABLE; | ||||
| private $projectPHIDs = self::ATTACHABLE; | private $projectPHIDs = self::ATTACHABLE; | ||||
| public static function initializeNewRepository(PhabricatorUser $actor) { | public static function initializeNewRepository(PhabricatorUser $actor) { | ||||
| $app = id(new PhabricatorApplicationQuery()) | $app = id(new PhabricatorApplicationQuery()) | ||||
| ->setViewer($actor) | ->setViewer($actor) | ||||
| Show All 18 Lines | return array( | ||||
| ), | ), | ||||
| self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
| 'name' => 'sort255', | 'name' => 'sort255', | ||||
| 'callsign' => 'sort32', | 'callsign' => 'sort32', | ||||
| 'versionControlSystem' => 'text32', | 'versionControlSystem' => 'text32', | ||||
| 'uuid' => 'text64?', | 'uuid' => 'text64?', | ||||
| 'pushPolicy' => 'policy', | 'pushPolicy' => 'policy', | ||||
| 'credentialPHID' => 'phid?', | 'credentialPHID' => 'phid?', | ||||
| 'almanacServicePHID' => 'phid?', | |||||
| ), | ), | ||||
| self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
| 'key_phid' => null, | 'key_phid' => null, | ||||
| 'phid' => array( | 'phid' => array( | ||||
| 'columns' => array('phid'), | 'columns' => array('phid'), | ||||
| 'unique' => true, | 'unique' => true, | ||||
| ), | ), | ||||
| 'callsign' => array( | 'callsign' => array( | ||||
| ▲ Show 20 Lines • Show All 1,519 Lines • Show Last 20 Lines | |||||