Page MenuHomePhabricator

D13944.id33654.diff
No OneTemporary

D13944.id33654.diff

diff --git a/src/workflow/ArcanistLandWorkflow.php b/src/workflow/ArcanistLandWorkflow.php
--- a/src/workflow/ArcanistLandWorkflow.php
+++ b/src/workflow/ArcanistLandWorkflow.php
@@ -495,14 +495,28 @@
$message = pht(
"There are multiple revisions on feature %s '%s' which are not ".
"present on '%s':\n\n".
- "%s\n".
- "Separate these revisions onto different %s, or use --revision <id>' ".
- "to use the commit message from <id> and land them all.",
+ "%s\n",
$this->branchType,
$this->branch,
$this->onto,
- $this->renderRevisionList($revisions),
- $this->branchType.'s');
+ $this->renderRevisionList($revisions));
+
+ switch ($this->branchType) {
+ case self::REFTYPE_BOOKMARK:
+ $message .= pht(
+ 'Separate these revisions onto different bookmarks, or use '.
+ '--revision <id> to use the commit message from <id> '.
+ 'and land them all.');
+ break;
+ case self::REFTYPE_BRANCH:
+ default:
+ $message .= pht(
+ 'Separate these revisions onto different branches, or use '.
+ '--revision <id> to use the commit message from <id> '.
+ 'and land them all.');
+ break;
+ }
+
throw new ArcanistUsageException($message);
}

File Metadata

Mime Type
text/plain
Expires
May 22 2024, 6:57 AM (5 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6305647
Default Alt Text
D13944.id33654.diff (1 KB)

Event Timeline