Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
| Show First 20 Lines • Show All 1,207 Lines • ▼ Show 20 Lines | /* -( Autoclose )---------------------------------------------------------- */ | ||||
| } | } | ||||
| public function setTrackOnlyRules(array $rules) { | public function setTrackOnlyRules(array $rules) { | ||||
| $rules = array_fill_keys($rules, true); | $rules = array_fill_keys($rules, true); | ||||
| $this->setDetail('branch-filter', $rules); | $this->setDetail('branch-filter', $rules); | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function supportsFetchRules() { | |||||
| if ($this->isGit()) { | |||||
| return true; | |||||
| } | |||||
| return false; | |||||
| } | |||||
| public function getFetchRules() { | |||||
| return $this->getDetail('fetch-rules', array()); | |||||
| } | |||||
| public function setFetchRules(array $rules) { | |||||
| return $this->setDetail('fetch-rules', $rules); | |||||
| } | |||||
| /* -( Repository URI Management )------------------------------------------ */ | /* -( Repository URI Management )------------------------------------------ */ | ||||
| /** | /** | ||||
| * Get the remote URI for this repository. | * Get the remote URI for this repository. | ||||
| * | * | ||||
| * @return string | * @return string | ||||
| ▲ Show 20 Lines • Show All 1,631 Lines • Show Last 20 Lines | |||||