protected function getEffectiveCommit()
 {
     $drequest = $this->getRequest();
     $modified_query = DiffusionLastModifiedQuery::newFromDiffusionRequest($drequest);
     list($commit) = $modified_query->loadLastModification();
     if (!$commit) {
         // TODO: Improve error messages here.
         return null;
     }
     return $commit->getCommitIdentifier();
 }
 public function processRequest()
 {
     $drequest = $this->getDiffusionRequest();
     $request = $this->getRequest();
     $modified_query = DiffusionLastModifiedQuery::newFromDiffusionRequest($drequest);
     list($commit, $commit_data) = $modified_query->loadLastModification();
     $phids = array();
     if ($commit_data && $commit_data->getCommitDetail('authorPHID')) {
         $phids = array($commit_data->getCommitDetail('authorPHID'));
     }
     $handles = id(new PhabricatorObjectHandleData($phids))->loadHandles();
     $output = DiffusionBrowseTableView::renderLastModifiedColumns($drequest->getRepository(), $handles, $commit, $commit_data);
     return id(new AphrontAjaxResponse())->setContent($output);
 }
 public function processRequest()
 {
     $drequest = $this->getDiffusionRequest();
     $request = $this->getRequest();
     $modified_query = DiffusionLastModifiedQuery::newFromDiffusionRequest($drequest);
     list($commit, $commit_data) = $modified_query->loadLastModification();
     $phids = array();
     if ($commit_data) {
         if ($commit_data->getCommitDetail('authorPHID')) {
             $phids[$commit_data->getCommitDetail('authorPHID')] = true;
         }
         if ($commit_data->getCommitDetail('committerPHID')) {
             $phids[$commit_data->getCommitDetail('committerPHID')] = true;
         }
     }
     $phids = array_keys($phids);
     $handles = $this->loadViewerHandles($phids);
     $output = DiffusionBrowseTableView::renderLastModifiedColumns($drequest->getRepository(), $handles, $commit, $commit_data);
     return id(new AphrontAjaxResponse())->setContent($output);
 }