1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-21 22:32:41 +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 $hasWarnedExternals = false;
private $unresolvedLint; private $unresolvedLint;
private $unresolvedTests; private $unresolvedTests;
private $diffID;
public function getCommandHelp() { public function getCommandHelp() {
return phutil_console_format(<<<EOTEXT return phutil_console_format(<<<EOTEXT
@ -55,6 +56,10 @@ EOTEXT
public function requiresRepositoryAPI() { public function requiresRepositoryAPI() {
return true; return true;
} }
public function getDiffID() {
return $this->diffID;
}
public function getArguments() { public function getArguments() {
return array( return array(
@ -340,6 +345,8 @@ EOTEXT
foreach ($changes as $change) { foreach ($changes as $change) {
echo ' '.$change->renderTextSummary()."\n"; echo ' '.$change->renderTextSummary()."\n";
} }
$this->diffID = $diff_info['diffid'];
return 0; return 0;
} }