Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14769820
D12843.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12843.diff
View Options
diff --git a/src/workflow/ArcanistLandWorkflow.php b/src/workflow/ArcanistLandWorkflow.php
--- a/src/workflow/ArcanistLandWorkflow.php
+++ b/src/workflow/ArcanistLandWorkflow.php
@@ -25,6 +25,9 @@
private $revision;
private $messageFile;
+ const REFTYPE_BRANCH = 'branch';
+ const REFTYPE_BOOKMARK = 'bookmark';
+
public function getRevisionDict() {
return $this->revision;
}
@@ -401,12 +404,21 @@
$repository_api->execxLocal('checkout %s', $this->branch);
}
- echo phutil_console_format(
- "%s\n",
- pht(
- 'Switched to %s **%s**. Identifying and merging...',
- $this->branchType,
- $this->branch));
+ switch ($this->branchType) {
+ case self::REFTYPE_BOOKMARK:
+ $message = pht(
+ 'Switched to bookmark **%s**. Identifying and merging...',
+ $this->branch);
+ break;
+ case self::REFTYPE_BRANCH:
+ default:
+ $message = pht(
+ 'Switched to branch **%s**. Identifying and merging...',
+ $this->branch);
+ break;
+ }
+
+ echo phutil_console_format($message."\n");
}
private function printPendingCommits() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 8:46 PM (19 h, 54 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7043472
Default Alt Text
D12843.diff (1 KB)
Attached To
Mode
D12843: Improve translation of an "arc land" string
Attached
Detach File
Event Timeline
Log In to Comment