Changeset View
Changeset View
Standalone View
Standalone View
src/repository/api/ArcanistMercurialAPI.php
Show All 9 Lines | final class ArcanistMercurialAPI extends ArcanistRepositoryAPI { | ||||
private $rawDiffCache = array(); | private $rawDiffCache = array(); | ||||
private $featureResults = array(); | private $featureResults = array(); | ||||
private $featureFutures = array(); | private $featureFutures = array(); | ||||
protected function buildLocalFuture(array $argv) { | protected function buildLocalFuture(array $argv) { | ||||
$env = $this->getMercurialEnvironmentVariables(); | $env = $this->getMercurialEnvironmentVariables(); | ||||
$argv[0] = 'hg '.$argv[0]; | // Mercurial deceptively indicates that the default encoding is UTF-8 | ||||
// however the actual default appears to be "something else", at least on | |||||
// Windows systems. Force all mercurial commands to use UTF-8 encoding. | |||||
$argv[0] = 'hg --encoding utf-8 '.$argv[0]; | |||||
$future = newv('ExecFuture', $argv) | $future = newv('ExecFuture', $argv) | ||||
->setEnv($env) | ->setEnv($env) | ||||
->setCWD($this->getPath()); | ->setCWD($this->getPath()); | ||||
return $future; | return $future; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,035 Lines • Show Last 20 Lines |