mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-14 02:42:40 +01:00
Rename "arc diff --preview" to "arc diff --only"
Summary: Experimental branch. Depends on D18739. Ref T2543. To prepare for `--draft`, consolidate `--preview` and `--only`. The old `--preview` is now `arc diff --only`. The old `--only` is now `arc diff --only --nounit --nolint`. I think this is more clear than other ways we could do it, since the difference between "draft" and "preview" seems less clear than the difference between "draft" and "only". Test Plan: Ran `arc diff --only` and `arc diff --only --nounit --nolint`. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T2543 Differential Revision: https://secure.phabricator.com/D18740
This commit is contained in:
parent
4c4f2e6674
commit
52992b9550
1 changed files with 12 additions and 13 deletions
|
@ -113,7 +113,7 @@ EOTEXT
|
||||||
'param' => 'commit',
|
'param' => 'commit',
|
||||||
'help' => pht('Read revision information from a specific commit.'),
|
'help' => pht('Read revision information from a specific commit.'),
|
||||||
'conflicts' => array(
|
'conflicts' => array(
|
||||||
'preview' => null,
|
'only' => null,
|
||||||
'update' => null,
|
'update' => null,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -175,10 +175,10 @@ EOTEXT
|
||||||
'%s can not be used with %s.',
|
'%s can not be used with %s.',
|
||||||
'--create',
|
'--create',
|
||||||
'--edit'),
|
'--edit'),
|
||||||
'preview' => pht(
|
'only' => pht(
|
||||||
'%s can not be used with %s.',
|
'%s can not be used with %s.',
|
||||||
'--create',
|
'--create',
|
||||||
'--preview'),
|
'--only'),
|
||||||
'update' => pht(
|
'update' => pht(
|
||||||
'%s can not be used with %s.',
|
'%s can not be used with %s.',
|
||||||
'--create',
|
'--create',
|
||||||
|
@ -201,14 +201,13 @@ EOTEXT
|
||||||
'never-apply-patches' => pht('%s suppresses lint.', '--nolint'),
|
'never-apply-patches' => pht('%s suppresses lint.', '--nolint'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'preview' => array(
|
'only' => array(
|
||||||
'help' => pht(
|
'help' => pht(
|
||||||
'Instead of creating or updating a revision, only create a diff, '.
|
'Instead of creating or updating a revision, only create a diff, '.
|
||||||
'which you may later attach to a revision. This still runs lint '.
|
'which you may later attach to a revision.'),
|
||||||
'unit tests.'),
|
|
||||||
'conflicts' => array(
|
'conflicts' => array(
|
||||||
'edit' => pht('%s does affect revisions.', '--preview'),
|
'edit' => pht('%s does affect revisions.', '--only'),
|
||||||
'message' => pht('%s does not update any revision.', '--preview'),
|
'message' => pht('%s does not update any revision.', '--only'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'encoding' => array(
|
'encoding' => array(
|
||||||
|
@ -321,7 +320,7 @@ EOTEXT
|
||||||
'conflicts' => array(
|
'conflicts' => array(
|
||||||
'use-commit-message' => true,
|
'use-commit-message' => true,
|
||||||
'update' => true,
|
'update' => true,
|
||||||
'preview' => true,
|
'only' => true,
|
||||||
'raw' => true,
|
'raw' => true,
|
||||||
'raw-command' => true,
|
'raw-command' => true,
|
||||||
'message-file' => true,
|
'message-file' => true,
|
||||||
|
@ -331,7 +330,7 @@ EOTEXT
|
||||||
'param' => 'usernames',
|
'param' => 'usernames',
|
||||||
'help' => pht('When creating a revision, add reviewers.'),
|
'help' => pht('When creating a revision, add reviewers.'),
|
||||||
'conflicts' => array(
|
'conflicts' => array(
|
||||||
'preview' => true,
|
'only' => true,
|
||||||
'update' => true,
|
'update' => true,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -339,7 +338,7 @@ EOTEXT
|
||||||
'param' => 'usernames',
|
'param' => 'usernames',
|
||||||
'help' => pht('When creating a revision, add CCs.'),
|
'help' => pht('When creating a revision, add CCs.'),
|
||||||
'conflicts' => array(
|
'conflicts' => array(
|
||||||
'preview' => true,
|
'only' => true,
|
||||||
'update' => true,
|
'update' => true,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -737,7 +736,7 @@ EOTEXT
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->getArgument('preview');
|
return $this->getArgument('only');
|
||||||
}
|
}
|
||||||
|
|
||||||
private function generateAffectedPaths() {
|
private function generateAffectedPaths() {
|
||||||
|
@ -1397,7 +1396,7 @@ EOTEXT
|
||||||
* @task message
|
* @task message
|
||||||
*/
|
*/
|
||||||
private function buildCommitMessage() {
|
private function buildCommitMessage() {
|
||||||
if ($this->getArgument('preview')) {
|
if ($this->getArgument('only')) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue