From: Marek Sapota Date: Fri, 4 Nov 2011 19:12:14 +0000 (-0700) Subject: Save committed revision id in workflow. X-Git-Tag: conduit-4~248 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=08ce2a2e2cd506f6358e7b0c57568a06c8e7140d;p=arcanist.git Save committed revision id in workflow. Summary: Save commited revision id in workflow, so it can be used in Arcanist didRunWorkflow hook. Test Plan: Running getRevisionID on the workflow should return id of the committed revision. Reviewers: epriestley, jungejason Reviewed By: epriestley CC: aran, epriestley, mareksapota Differential Revision: 1078 --- diff --git a/src/workflow/commit/ArcanistCommitWorkflow.php b/src/workflow/commit/ArcanistCommitWorkflow.php index d40a837d..cd4a8829 100644 --- a/src/workflow/commit/ArcanistCommitWorkflow.php +++ b/src/workflow/commit/ArcanistCommitWorkflow.php @@ -23,6 +23,8 @@ */ class ArcanistCommitWorkflow extends ArcanistBaseWorkflow { + private $revisionID; + public function getCommandHelp() { return phutil_console_format(<<revisionID; + } + public function getArguments() { return array( 'show' => array( @@ -167,6 +173,8 @@ EOTEXT )); $mark_workflow->run(); + $this->revisionID = $revision_id; + return $err; }