Differential D20465 Diff 48839 src/applications/repository/engine/PhabricatorRepositoryRefEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/engine/PhabricatorRepositoryRefEngine.php
| Show First 20 Lines • Show All 341 Lines • ▼ Show 20 Lines | private function shouldCloseRef($ref_type, $ref_name) { | ||||
| if ($this->hasNoCursors) { | if ($this->hasNoCursors) { | ||||
| // If we don't have any cursors, don't close things. Particularly, this | // If we don't have any cursors, don't close things. Particularly, this | ||||
| // corresponds to the case where you've just updated to this code on an | // corresponds to the case where you've just updated to this code on an | ||||
| // existing repository: we don't want to requeue message steps for every | // existing repository: we don't want to requeue message steps for every | ||||
| // commit on a closeable ref. | // commit on a closeable ref. | ||||
| return false; | return false; | ||||
| } | } | ||||
| return $this->getRepository()->shouldAutocloseBranch($ref_name); | return $this->getRepository()->isBranchPermanentRef($ref_name); | ||||
| } | } | ||||
| /** | /** | ||||
| * Find all ancestors of a new closing branch head which are not ancestors | * Find all ancestors of a new closing branch head which are not ancestors | ||||
| * of any old closing branch head. | * of any old closing branch head. | ||||
| */ | */ | ||||
| private function loadNewCommitIdentifiers( | private function loadNewCommitIdentifiers( | ||||
| $new_head, | $new_head, | ||||
| ▲ Show 20 Lines • Show All 259 Lines • Show Last 20 Lines | |||||