Differential D21783 Diff 51939 src/applications/diffusion/controller/DiffusionRepositoryEditEnormousController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionRepositoryEditEnormousController.php
Show All 17 Lines | $panel_uri = id(new DiffusionRepositoryBasicsManagementPanel()) | ||||
->getPanelURI(); | ->getPanelURI(); | ||||
if (!$repository->canAllowEnormousChanges()) { | if (!$repository->canAllowEnormousChanges()) { | ||||
return $this->newDialog() | return $this->newDialog() | ||||
->setTitle(pht('Unprotectable Repository')) | ->setTitle(pht('Unprotectable Repository')) | ||||
->appendParagraph( | ->appendParagraph( | ||||
pht( | pht( | ||||
'This repository can not be protected from enormous changes '. | 'This repository can not be protected from enormous changes '. | ||||
'because Phabricator does not control what users are allowed '. | 'because this server does not control what users are allowed '. | ||||
'to push to it.')) | 'to push to it.')) | ||||
->addCancelButton($panel_uri); | ->addCancelButton($panel_uri); | ||||
} | } | ||||
if ($request->isFormPost()) { | if ($request->isFormPost()) { | ||||
$xaction = id(new PhabricatorRepositoryTransaction()) | $xaction = id(new PhabricatorRepositoryTransaction()) | ||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorRepositoryEnormousTransaction::TRANSACTIONTYPE) | PhabricatorRepositoryEnormousTransaction::TRANSACTIONTYPE) | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |