Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistUpgradeWorkflow.php
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | foreach ($roots as $library => $root) { | ||||
$uncommitted = $repository_api->getUncommittedStatus(); | $uncommitted = $repository_api->getUncommittedStatus(); | ||||
if ($uncommitted) { | if ($uncommitted) { | ||||
$message = pht( | $message = pht( | ||||
'You have uncommitted changes in the working copy ("%s") for this '. | 'You have uncommitted changes in the working copy ("%s") for this '. | ||||
'library ("%s"):', | 'library ("%s"):', | ||||
$root, | $root, | ||||
$library); | $library); | ||||
$list = id(new PhutilConsoleList()) | $list = (new PhutilConsoleList()) | ||||
->setWrap(false) | ->setWrap(false) | ||||
->addItems(array_keys($uncommitted)); | ->addItems(array_keys($uncommitted)); | ||||
id(new PhutilConsoleBlock()) | (new PhutilConsoleBlock()) | ||||
->addParagraph($message) | ->addParagraph($message) | ||||
->addList($list) | ->addList($list) | ||||
->addParagraph( | ->addParagraph( | ||||
pht( | pht( | ||||
'Discard these changes before running "arc upgrade".')) | 'Discard these changes before running "arc upgrade".')) | ||||
->draw(); | ->draw(); | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0