Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistExportWorkflow.php
Show First 20 Lines • Show All 172 Lines • ▼ Show 20 Lines | public function run() { | ||||
switch ($source) { | switch ($source) { | ||||
case self::SOURCE_LOCAL: | case self::SOURCE_LOCAL: | ||||
$repository_api = $this->getRepositoryAPI(); | $repository_api = $this->getRepositoryAPI(); | ||||
$parser = new ArcanistDiffParser(); | $parser = new ArcanistDiffParser(); | ||||
$parser->setRepositoryAPI($repository_api); | $parser->setRepositoryAPI($repository_api); | ||||
if ($repository_api instanceof ArcanistGitAPI) { | if ($repository_api instanceof ArcanistGitAPI) { | ||||
$this->parseBaseCommitArgument($this->getArgument('paths')); | $this->parseBaseCommitArgument($this->getArgument('paths')); | ||||
$diff = $repository_api->getFullGitDiff(); | $diff = $repository_api->getFullGitDiff( | ||||
$repository_api->getBaseCommit(), | |||||
$repository_api->getHeadCommit()); | |||||
$changes = $parser->parseDiff($diff); | $changes = $parser->parseDiff($diff); | ||||
$authors = $this->getConduit()->callMethodSynchronous( | $authors = $this->getConduit()->callMethodSynchronous( | ||||
'user.query', | 'user.query', | ||||
array( | array( | ||||
'phids' => array($this->getUserPHID()), | 'phids' => array($this->getUserPHID()), | ||||
)); | )); | ||||
$author_dict = reset($authors); | $author_dict = reset($authors); | ||||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |