Changeset View
Changeset View
Standalone View
Standalone View
src/repository/api/ArcanistMercurialAPI.php
| Show All 21 Lines | protected function buildLocalFuture(array $argv) { | ||||
| $future = newv('ExecFuture', $argv) | $future = newv('ExecFuture', $argv) | ||||
| ->setEnv($env) | ->setEnv($env) | ||||
| ->setCWD($this->getPath()); | ->setCWD($this->getPath()); | ||||
| return $future; | return $future; | ||||
| } | } | ||||
| public function execPassthru($pattern /* , ... */) { | public function newPassthru($pattern /* , ... */) { | ||||
| $args = func_get_args(); | $args = func_get_args(); | ||||
| $env = $this->getMercurialEnvironmentVariables(); | $env = $this->getMercurialEnvironmentVariables(); | ||||
| $args[0] = 'hg '.$args[0]; | $args[0] = 'hg '.$args[0]; | ||||
| $passthru = newv('PhutilExecPassthru', $args) | return newv('PhutilExecPassthru', $args) | ||||
| ->setEnv($env) | ->setEnv($env) | ||||
| ->setCWD($this->getPath()); | ->setCWD($this->getPath()); | ||||
| return $passthru->resolve(); | |||||
| } | } | ||||
| public function getSourceControlSystemName() { | public function getSourceControlSystemName() { | ||||
| return 'hg'; | return 'hg'; | ||||
| } | } | ||||
| public function getMetadataPath() { | public function getMetadataPath() { | ||||
| return $this->getPath('.hg'); | return $this->getPath('.hg'); | ||||
| ▲ Show 20 Lines • Show All 1,177 Lines • Show Last 20 Lines | |||||