Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
| Show First 20 Lines • Show All 1,617 Lines • ▼ Show 20 Lines | public function canMirror() { | ||||
| return false; | return false; | ||||
| } | } | ||||
| public function canAllowDangerousChanges() { | public function canAllowDangerousChanges() { | ||||
| if (!$this->isHosted()) { | if (!$this->isHosted()) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if ($this->isGit() || $this->isHg()) { | // In Git and Mercurial, ref deletions and rewrites are dangerous. | ||||
| return true; | // In Subversion, editing revprops is dangerous. | ||||
| } | |||||
| return false; | return true; | ||||
| } | } | ||||
| public function shouldAllowDangerousChanges() { | public function shouldAllowDangerousChanges() { | ||||
| return (bool)$this->getDetail('allow-dangerous-changes'); | return (bool)$this->getDetail('allow-dangerous-changes'); | ||||
| } | } | ||||
| public function writeStatusMessage( | public function writeStatusMessage( | ||||
| $status_type, | $status_type, | ||||
| ▲ Show 20 Lines • Show All 786 Lines • Show Last 20 Lines | |||||