Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistDiffWorkflow.php
Show First 20 Lines • Show All 1,024 Lines • ▼ Show 20 Lines | foreach ($changes as $change) { | ||||
if (!$is_binary) { | if (!$is_binary) { | ||||
if (!$try_encoding) { | if (!$try_encoding) { | ||||
try { | try { | ||||
$try_encoding = $this->getRepositoryEncoding(); | $try_encoding = $this->getRepositoryEncoding(); | ||||
} catch (ConduitClientException $e) { | } catch (ConduitClientException $e) { | ||||
if ($e->getErrorCode() == 'ERR-BAD-ARCANIST-PROJECT') { | if ($e->getErrorCode() == 'ERR-BAD-ARCANIST-PROJECT') { | ||||
echo phutil_console_wrap( | echo phutil_console_wrap( | ||||
"%s\n", | pht('Lookup of encoding in arcanist project failed: %s', | ||||
pht('Lookup of encoding in arcanist project failed'), | $e->getMessage())."\n"); | ||||
$e->getMessage()); | |||||
} else { | } else { | ||||
throw $e; | throw $e; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
if ($try_encoding) { | if ($try_encoding) { | ||||
$corpus = phutil_utf8_convert($corpus, 'UTF-8', $try_encoding); | $corpus = phutil_utf8_convert($corpus, 'UTF-8', $try_encoding); | ||||
▲ Show 20 Lines • Show All 1,765 Lines • Show Last 20 Lines |