]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Expose diff IDs to post-diff workflows.
authorepriestley <epriestley@javelinjs.com>
Sat, 22 Jan 2011 00:17:30 +0000 (16:17 -0800)
committerepriestley <epriestley@javelinjs.com>
Sat, 22 Jan 2011 00:17:30 +0000 (16:17 -0800)
Summary:

Test Plan:

Reviewers:

CC:

src/workflow/diff/ArcanistDiffWorkflow.php

index 8193c6400b6a7f911aa490ff33852f3d772f7576..9bd5986375abef732cee8d01aa3a0090850fd716 100644 (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;
   }