getConduit(); $repository_api = $this->getRepositoryAPI(); $revision_future = $conduit->callMethod( 'differential.find', array( 'guids' => array($this->getUserPHID()), 'query' => 'open', )); $revisions = array(); foreach ($revision_future->resolve() as $revision_dict) { $revisions[] = ArcanistDifferentialRevisionRef::newFromDictionary( $revision_dict); } if (!$revisions) { echo "You have no open Differential revisions.\n"; return 0; } foreach ($revisions as $revision) { $revision_path = Filesystem::resolvePath($revision->getSourcePath()); $current_path = Filesystem::resolvePath($repository_api->getPath()); $from_here = ($revision_path == $current_path); printf( " %15s | %s | D%d | %s\n", $revision->getStatusName(), $from_here ? '*' : ' ', $revision->getID(), $revision->getName()); } return 0; } }