1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-12-23 05:50:54 +01:00

Expose diff IDs to post-diff workflows.

Summary:

Test Plan:

Reviewers:

CC:
This commit is contained in:
epriestley 2011-01-21 16:17:30 -08:00
parent 746768e779
commit adef7d4975

View file

@ -21,6 +21,7 @@ class ArcanistDiffWorkflow extends ArcanistBaseWorkflow {
private $hasWarnedExternals = false;
private $unresolvedLint;
private $unresolvedTests;
private $diffID;
public function getCommandHelp() {
return phutil_console_format(<<<EOTEXT
@ -55,6 +56,10 @@ EOTEXT
public function requiresRepositoryAPI() {
return true;
}
public function getDiffID() {
return $this->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;
}