3 final class DiffusionRepositoryEditUpdateController
4 extends DiffusionRepositoryManageController
{
6 public function handleRequest(AphrontRequest
$request) {
7 $response = $this->loadDiffusionContextForEdit();
12 $viewer = $this->getViewer();
13 $drequest = $this->getDiffusionRequest();
14 $repository = $drequest->getRepository();
16 $panel_uri = id(new DiffusionRepositoryBasicsManagementPanel())
17 ->setRepository($repository)
20 if ($request->isFormPost()) {
22 'repositories' => array(
23 $repository->getPHID(),
27 id(new ConduitCall('diffusion.looksoon', $params))
31 return id(new AphrontRedirectResponse())->setURI($panel_uri);
34 $doc_name = 'Diffusion User Guide: Repository Updates';
35 $doc_href = PhabricatorEnv
::getDoclink($doc_name);
36 $doc_link = phutil_tag(
44 return $this->newDialog()
45 ->setTitle(pht('Update Repository Now'))
48 'Normally, repositories are automatically updated '.
49 'based on how much time has elapsed since the last commit. '.
50 'This helps reduce load if you have a large number of mostly '.
51 'inactive repositories, which is common.'))
54 'You can manually schedule an update for this repository. The '.
55 'daemons will perform the update as soon as possible. This may '.
56 'be helpful if you have just made a commit to a rarely used '.
60 'To learn more about how repositories are updated, '.
61 'read %s in the documentation.',
63 ->addCancelButton($panel_uri)
64 ->addSubmitButton(pht('Schedule Update'));