Changeset View
Changeset View
Standalone View
Standalone View
src/filesystem/binary/PhutilMercurialBinaryAnalyzer.php
<?php | <?php | ||||
final class PhutilMercurialBinaryAnalyzer | final class PhutilMercurialBinaryAnalyzer | ||||
extends PhutilBinaryAnalyzer { | extends PhutilBinaryAnalyzer { | ||||
const BINARY = 'hg'; | const BINARY = 'hg'; | ||||
const CAPABILITY_FILES = 'files'; | const CAPABILITY_FILES = 'files'; | ||||
const CAPABILITY_INJECTION = 'injection'; | const CAPABILITY_INJECTION = 'injection'; | ||||
const CAPABILITY_TEMPLATE_PNODE = 'template_pnode'; | const CAPABILITY_TEMPLATE_PNODE = 'template_pnode'; | ||||
const CAPABILTIY_ANNOTATE_TEMPLATES = 'annotate_templates'; | const CAPABILTIY_ANNOTATE_TEMPLATES = 'annotate_templates'; | ||||
protected function newBinaryVersion() { | protected function newBinaryVersion() { | ||||
$future = id(new ExecFuture('hg --version --quiet')) | $future = (new ExecFuture('hg --version --quiet')) | ||||
->setEnv( | ->setEnv( | ||||
array( | array( | ||||
'HGPLAIN' => 1, | 'HGPLAIN' => 1, | ||||
)); | )); | ||||
list($err, $stdout) = $future->resolve(); | list($err, $stdout) = $future->resolve(); | ||||
if ($err) { | if ($err) { | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0