mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-10 08:52:39 +01:00
Run 'mark-committed' from 'arc land'
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
This commit is contained in:
parent
4f07c3c8fd
commit
eaa565747e
2 changed files with 19 additions and 9 deletions
|
@ -81,10 +81,6 @@ EOTEXT
|
|||
}
|
||||
|
||||
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(
|
||||
|
@ -257,6 +253,15 @@ EOTEXT
|
|||
throw new ArcanistUsageException("'git push' failed.");
|
||||
}
|
||||
|
||||
$mark_workflow = $this->buildChildWorkflow(
|
||||
'mark-committed',
|
||||
array(
|
||||
'--finalize',
|
||||
'--quiet',
|
||||
$revision['id'],
|
||||
));
|
||||
$mark_workflow->run();
|
||||
|
||||
echo "\n";
|
||||
}
|
||||
|
||||
|
|
|
@ -45,6 +45,9 @@ EOTEXT
|
|||
"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',
|
||||
);
|
||||
}
|
||||
|
@ -149,11 +152,13 @@ EOTEXT
|
|||
$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;
|
||||
|
|
Loading…
Reference in a new issue