]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Minor tidying of `ArcanistVersionWorkflow`
authorJoshua Spence <josh@joshuaspence.com>
Thu, 29 Jan 2015 20:15:05 +0000 (07:15 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Thu, 29 Jan 2015 20:15:05 +0000 (07:15 +1100)
Summary: Self-explanatory.

Test Plan: Eyeball it.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11553

src/workflow/ArcanistVersionWorkflow.php

index b06745123b4548c39d0ea6040e37fb9e8902dffb..ea27eaff3c11aca5911d4ffb0a92c807abc972b0 100644 (file)
@@ -29,7 +29,9 @@ EOTEXT
 
     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 @@ EOTEXT
         $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));