function HgDownloader::getCommitLogs
@inheritDoc
Overrides VcsDownloader::getCommitLogs
File
-
vendor/
composer/ composer/ src/ Composer/ Downloader/ HgDownloader.php, line 104
Class
- HgDownloader
- @author Per Bernhardt <plb@webfactory.de>
Namespace
Composer\DownloaderCode
protected function getCommitLogs(string $fromReference, string $toReference, string $path) : string {
$command = [
'hg',
'log',
'-r',
$fromReference . ':' . $toReference,
'--style',
'compact',
];
if (0 !== $this->process
->execute($command, $output, realpath($path))) {
throw new \RuntimeException('Failed to execute ' . implode(' ', $command) . "\n\n" . $this->process
->getErrorOutput());
}
return $output;
}