Differential D20748 Diff 49474 src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | public function pullRepository() { | ||||
return $result; | return $result; | ||||
} | } | ||||
private function pullRepositoryWithLock() { | private function pullRepositoryWithLock() { | ||||
$repository = $this->getRepository(); | $repository = $this->getRepository(); | ||||
$viewer = PhabricatorUser::getOmnipotentUser(); | $viewer = PhabricatorUser::getOmnipotentUser(); | ||||
if ($repository->isReadOnly()) { | |||||
$this->skipPull( | |||||
pht( | |||||
"Skipping pull on read-only repository.\n\n%s", | |||||
$repository->getReadOnlyMessageForDisplay())); | |||||
} | |||||
$is_hg = false; | $is_hg = false; | ||||
$is_git = false; | $is_git = false; | ||||
$is_svn = false; | $is_svn = false; | ||||
$vcs = $repository->getVersionControlSystem(); | $vcs = $repository->getVersionControlSystem(); | ||||
switch ($vcs) { | switch ($vcs) { | ||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN: | case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN: | ||||
▲ Show 20 Lines • Show All 699 Lines • Show Last 20 Lines |