function HgDriver::getRootIdentifier
@inheritDoc
Overrides VcsDriverInterface::getRootIdentifier
File
-
vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ HgDriver.php, line 90
Class
- HgDriver
- @author Per Bernhardt <plb@webfactory.de>
Namespace
Composer\Repository\VcsCode
public function getRootIdentifier() : string {
if (null === $this->rootIdentifier) {
$this->process
->execute([
'hg',
'tip',
'--template',
'{node}',
], $output, $this->repoDir);
$output = $this->process
->splitLines($output);
$this->rootIdentifier = $output[0];
}
return $this->rootIdentifier;
}