From 2c235bdf38183c723fc7c0d7a22213c6dd80fe38 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sun, 9 Jan 2011 15:51:04 -0800 Subject: [PATCH] Fix a couple of lint issues, and update to version 2 (github). --- .gitignore | 2 ++ scripts/arcanist.php | 2 +- .../phutilmodule/ArcanistPhutilModuleLinter.php | 2 +- src/workflow/amend/ArcanistAmendWorkflow.php | 4 ++-- src/workflow/base/ArcanistBaseWorkflow.php | 2 +- support/xhpast/parser_nodes.php | 16 ++++++++++++++++ 6 files changed, 23 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index f2d389f7..babd834d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +.DS_Store +._* *.a *.o /support/xhpast/xhpast diff --git a/scripts/arcanist.php b/scripts/arcanist.php index 12f90d86..5091c897 100755 --- a/scripts/arcanist.php +++ b/scripts/arcanist.php @@ -116,7 +116,7 @@ try { 'conduit.connect', array( 'client' => 'arc', - 'clientVersion' => 1, + 'clientVersion' => 2, 'clientDescription' => php_uname('n').':'.$description, 'user' => getenv('USER'), )); diff --git a/src/lint/linter/phutilmodule/ArcanistPhutilModuleLinter.php b/src/lint/linter/phutilmodule/ArcanistPhutilModuleLinter.php index f93ca7f8..bde388bb 100644 --- a/src/lint/linter/phutilmodule/ArcanistPhutilModuleLinter.php +++ b/src/lint/linter/phutilmodule/ArcanistPhutilModuleLinter.php @@ -92,7 +92,7 @@ class ArcanistPhutilModuleLinter extends ArcanistLinter { $modules = array(); $moduleinfo = array(); - + $project_root = $this->getEngine()->getWorkingCopy()->getProjectRoot(); foreach ($paths as $path) { diff --git a/src/workflow/amend/ArcanistAmendWorkflow.php b/src/workflow/amend/ArcanistAmendWorkflow.php index e5c1bc1a..fd29962e 100644 --- a/src/workflow/amend/ArcanistAmendWorkflow.php +++ b/src/workflow/amend/ArcanistAmendWorkflow.php @@ -108,7 +108,7 @@ EOTEXT $repository_api->amendGitHeadCommit($message); echo "Amended commit message.\n"; } - + $working_copy = $this->getWorkingCopy(); $remote_hooks = $working_copy->getConfig('remote_hooks_installed', false); if (!$remote_hooks) { @@ -120,7 +120,7 @@ EOTEXT 'mark-committed', array($revision_id)); $mark_workflow->run(); - } + } return 0; } diff --git a/src/workflow/base/ArcanistBaseWorkflow.php b/src/workflow/base/ArcanistBaseWorkflow.php index 161d2842..daf6c647 100644 --- a/src/workflow/base/ArcanistBaseWorkflow.php +++ b/src/workflow/base/ArcanistBaseWorkflow.php @@ -534,7 +534,7 @@ class ArcanistBaseWorkflow { } $api->setRelativeCommit(trim($merge_base)); } - + protected function normalizeRevisionID($revision_id) { return ltrim(strtoupper($revision_id), 'D'); } diff --git a/support/xhpast/parser_nodes.php b/support/xhpast/parser_nodes.php index 699ebd15..20864f09 100755 --- a/support/xhpast/parser_nodes.php +++ b/support/xhpast/parser_nodes.php @@ -1,5 +1,21 @@ 'n_PROGRAM', -- 2.43.0