Changeset View
Changeset View
Standalone View
Standalone View
src/land/engine/ArcanistMercurialLandEngine.php
Show First 20 Lines • Show All 830 Lines • ▼ Show 20 Lines | protected function pushChange($into_commit) { | ||||
foreach ($head as $command) { | foreach ($head as $command) { | ||||
$api->execxLocal('%Ls', $command); | $api->execxLocal('%Ls', $command); | ||||
} | } | ||||
try { | try { | ||||
foreach ($body as $command) { | foreach ($body as $command) { | ||||
$err = $this->newPassthru('%Ls', $command); | $err = $this->newPassthru('%Ls', $command); | ||||
if ($err) { | if ($err) { | ||||
throw new ArcanistUsageException( | throw new ArcanistLandPushFailureException( | ||||
pht( | pht( | ||||
'Push failed! Fix the error and run "arc land" again.')); | 'Push failed! Fix the error and run "arc land" again.')); | ||||
} | } | ||||
} | } | ||||
} finally { | } finally { | ||||
foreach ($tail as $command) { | foreach ($tail as $command) { | ||||
$api->execxLocal('%Ls', $command); | $api->execxLocal('%Ls', $command); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 251 Lines • Show Last 20 Lines |