Summary:
- Remove "new and experimental" because arc land is super awesome and great.
- Run the 'mark-committed' finalize workflow after pushing for untracked repo
setups.
Test Plan: Ran "arc mark-committed --quiet --finalize 123". Will run "arc land"
on this. so lazy
Reviewers: cpiro, btrahan
Reviewed By: cpiro
CC: aran, epriestley
Maniphest Tasks: T819
Differential Revision: https://secure.phabricator.com/D1538
}
public function run() {
- $this->writeStatusMessage(
- phutil_console_format(
- "**WARNING:** 'arc land' is new and experimental.\n"));
-
$branch = $this->getArgument('branch');
if (count($branch) !== 1) {
throw new ArcanistUsageException(
throw new ArcanistUsageException("'git push' failed.");
}
+ $mark_workflow = $this->buildChildWorkflow(
+ 'mark-committed',
+ array(
+ '--finalize',
+ '--quiet',
+ $revision['id'],
+ ));
+ $mark_workflow->run();
+
echo "\n";
}
"revision is accepted. Continue even if the mark can't happen. This ".
"is a soft version of 'mark-committed' used by other workflows.",
),
+ 'quiet' => array(
+ 'help' => 'Do not print a success message.',
+ ),
'*' => 'revision',
);
}
$is_finalized = false;
}
- if ($is_finalized) {
- $message = $this->getRepositoryAPI()->getFinalizedRevisionMessage();
- echo phutil_console_wrap($message)."\n";
- } else {
- echo "Done.\n";
+ if (!$this->getArgument('quiet')) {
+ if ($is_finalized) {
+ $message = $this->getRepositoryAPI()->getFinalizedRevisionMessage();
+ echo phutil_console_wrap($message)."\n";
+ } else {
+ echo "Done.\n";
+ }
}
return 0;