From: epriestley Date: Sat, 22 Jan 2011 00:17:30 +0000 (-0800) Subject: Expose diff IDs to post-diff workflows. X-Git-Tag: conduit-4~430 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=adef7d49757b0975a00124efb5201feb6e5ed4f9;p=arcanist.git Expose diff IDs to post-diff workflows. Summary: Test Plan: Reviewers: CC: --- diff --git a/src/workflow/diff/ArcanistDiffWorkflow.php b/src/workflow/diff/ArcanistDiffWorkflow.php index 8193c640..9bd59863 100644 --- a/src/workflow/diff/ArcanistDiffWorkflow.php +++ b/src/workflow/diff/ArcanistDiffWorkflow.php @@ -21,6 +21,7 @@ class ArcanistDiffWorkflow extends ArcanistBaseWorkflow { private $hasWarnedExternals = false; private $unresolvedLint; private $unresolvedTests; + private $diffID; public function getCommandHelp() { return phutil_console_format(<<diffID; + } public function getArguments() { return array( @@ -340,6 +345,8 @@ EOTEXT foreach ($changes as $change) { echo ' '.$change->renderTextSummary()."\n"; } + + $this->diffID = $diff_info['diffid']; return 0; }