Differential D13200 Diff 31965 src/applications/releeph/controller/request/ReleephRequestEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/controller/request/ReleephRequestEditController.php
| Show First 20 Lines • Show All 244 Lines • ▼ Show 20 Lines | if ($is_edit) { | ||||
| $title = sprintf( | $title = sprintf( | ||||
| 'D%d: %s', | 'D%d: %s', | ||||
| $diff_rev_id, | $diff_rev_id, | ||||
| $diff_rev->getTitle()); | $diff_rev->getTitle()); | ||||
| $form | $form | ||||
| ->addHiddenInput('requestIdentifierRaw', 'D'.$diff_rev_id) | ->addHiddenInput('requestIdentifierRaw', 'D'.$diff_rev_id) | ||||
| ->appendChild( | ->appendChild( | ||||
| id(new AphrontFormStaticControl()) | id(new AphrontFormStaticControl()) | ||||
| ->setLabel('Diff') | ->setLabel(pht('Diff')) | ||||
| ->setValue($title)); | ->setValue($title)); | ||||
| } else { | } else { | ||||
| $origin = $branch->getURI(); | $origin = $branch->getURI(); | ||||
| $repo = $product->getRepository(); | $repo = $product->getRepository(); | ||||
| $branch_cut_point = id(new PhabricatorRepositoryCommit()) | $branch_cut_point = id(new PhabricatorRepositoryCommit()) | ||||
| ->loadOneWhere( | ->loadOneWhere( | ||||
| 'phid = %s', | 'phid = %s', | ||||
| $branch->getCutPointCommitPHID()); | $branch->getCutPointCommitPHID()); | ||||
| ▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines | |||||