Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistWorkflow.php
| Show First 20 Lines • Show All 1,711 Lines • ▼ Show 20 Lines | final protected function newDiffParser() { | ||||
| $parser = new ArcanistDiffParser(); | $parser = new ArcanistDiffParser(); | ||||
| if ($this->repositoryAPI) { | if ($this->repositoryAPI) { | ||||
| $parser->setRepositoryAPI($this->getRepositoryAPI()); | $parser->setRepositoryAPI($this->getRepositoryAPI()); | ||||
| } | } | ||||
| $parser->setWriteDiffOnFailure(true); | $parser->setWriteDiffOnFailure(true); | ||||
| return $parser; | return $parser; | ||||
| } | } | ||||
| final protected function resolveCall(ConduitFuture $method, $timeout = null) { | final protected function resolveCall(ConduitFuture $method) { | ||||
| try { | try { | ||||
| return $method->resolve($timeout); | return $method->resolve(); | ||||
| } catch (ConduitClientException $ex) { | } catch (ConduitClientException $ex) { | ||||
| if ($ex->getErrorCode() == 'ERR-CONDUIT-CALL') { | if ($ex->getErrorCode() == 'ERR-CONDUIT-CALL') { | ||||
| echo phutil_console_wrap( | echo phutil_console_wrap( | ||||
| pht( | pht( | ||||
| 'This feature requires a newer version of Phabricator. Please '. | 'This feature requires a newer version of Phabricator. Please '. | ||||
| 'update it using these instructions: %s', | 'update it using these instructions: %s', | ||||
| 'https://secure.phabricator.com/book/phabricator/article/'. | 'https://secure.phabricator.com/book/phabricator/article/'. | ||||
| 'upgrading/')."\n\n"); | 'upgrading/')."\n\n"); | ||||
| ▲ Show 20 Lines • Show All 522 Lines • Show Last 20 Lines | |||||