Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14620310
D11553.id27807.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
D11553.id27807.diff
View Options
diff --git a/src/workflow/ArcanistVersionWorkflow.php b/src/workflow/ArcanistVersionWorkflow.php
--- a/src/workflow/ArcanistVersionWorkflow.php
+++ b/src/workflow/ArcanistVersionWorkflow.php
@@ -29,7 +29,9 @@
if (!Filesystem::binaryExists('git')) {
throw new ArcanistUsageException(
- 'Cannot display current version without having `git` installed.');
+ pht(
+ 'Cannot display current version without having `%s` installed.',
+ 'git'));
}
$roots = array(
@@ -45,13 +47,17 @@
$configuration_manager);
if (!Filesystem::pathExists($repository->getMetadataPath())) {
- throw new ArcanistUsageException("{$lib} is not a git working copy.");
+ throw new ArcanistUsageException(
+ pht(
+ '%s is not a git working copy.',
+ $lib));
}
list($stdout) = $repository->execxLocal('log -1 --format=%s', '%H %ct');
list($commit, $timestamp) = explode(' ', $stdout);
- $console->writeOut("%s %s (%s)\n",
+ $console->writeOut(
+ "%s %s (%s)\n",
$lib,
$commit,
date('j M Y', (int)$timestamp));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 3:15 AM (16 h, 34 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6984454
Default Alt Text
D11553.id27807.diff (1 KB)
Attached To
Mode
D11553: Minor tidying of `ArcanistVersionWorkflow`
Attached
Detach File
Event Timeline
Log In to Comment