mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 16:22:42 +01:00
Fix wrong plural of an arc land
message
Summary: "Branch" was pluralized as "branchs". Fixes T9225. Test Plan: * Created test repo with two revisions on a feature branch. * Saw old message, frowned a little. * Applied patch. * No longer frowning. Reviewers: chad, epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: avivey, Korvin Maniphest Tasks: T9225 Differential Revision: https://secure.phabricator.com/D13944
This commit is contained in:
parent
05aaa1a5a3
commit
f47d15387b
1 changed files with 28 additions and 11 deletions
|
@ -492,17 +492,34 @@ EOTEXT
|
||||||
'arc amend',
|
'arc amend',
|
||||||
'--revision <id>'));
|
'--revision <id>'));
|
||||||
} else if (count($revisions) > 1) {
|
} else if (count($revisions) > 1) {
|
||||||
$message = pht(
|
switch ($this->branchType) {
|
||||||
"There are multiple revisions on feature %s '%s' which are not ".
|
case self::REFTYPE_BOOKMARK:
|
||||||
"present on '%s':\n\n".
|
$message = pht(
|
||||||
"%s\n".
|
"There are multiple revisions on feature bookmark '%s' which are ".
|
||||||
"Separate these revisions onto different %s, or use --revision <id>' ".
|
"not present on '%s':\n\n".
|
||||||
"to use the commit message from <id> and land them all.",
|
"%s\n".
|
||||||
$this->branchType,
|
'Separate these revisions onto different bookmarks, or use '.
|
||||||
$this->branch,
|
'--revision <id> to use the commit message from <id> '.
|
||||||
$this->onto,
|
'and land them all.',
|
||||||
$this->renderRevisionList($revisions),
|
$this->branch,
|
||||||
$this->branchType.'s');
|
$this->onto,
|
||||||
|
$this->renderRevisionList($revisions));
|
||||||
|
break;
|
||||||
|
case self::REFTYPE_BRANCH:
|
||||||
|
default:
|
||||||
|
$message = pht(
|
||||||
|
"There are multiple revisions on feature branch '%s' which are ".
|
||||||
|
"not present on '%s':\n\n".
|
||||||
|
"%s\n".
|
||||||
|
'Separate these revisions onto different branches, or use '.
|
||||||
|
'--revision <id> to use the commit message from <id> '.
|
||||||
|
'and land them all.',
|
||||||
|
$this->branch,
|
||||||
|
$this->onto,
|
||||||
|
$this->renderRevisionList($revisions));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
throw new ArcanistUsageException($message);
|
throw new ArcanistUsageException($message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue