1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 14:52:40 +01:00

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
This commit is contained in:
Marek Sapota 2011-11-04 12:12:14 -07:00
parent d57ea379c6
commit 08ce2a2e2c

View file

@ -23,6 +23,8 @@
*/
class ArcanistCommitWorkflow extends ArcanistBaseWorkflow {
private $revisionID;
public function getCommandHelp() {
return phutil_console_format(<<<EOTEXT
**commit** [--revision __revision_id__] [--show]
@ -48,6 +50,10 @@ EOTEXT
return true;
}
public function getRevisionID() {
return $this->revisionID;
}
public function getArguments() {
return array(
'show' => array(
@ -167,6 +173,8 @@ EOTEXT
));
$mark_workflow->run();
$this->revisionID = $revision_id;
return $err;
}