function FossilDownloader::getCommitLogs
@inheritDoc
Overrides VcsDownloader::getCommitLogs
File
-
vendor/
composer/ composer/ src/ Composer/ Downloader/ FossilDownloader.php, line 94
Class
- FossilDownloader
- @author BohwaZ <http://bohwaz.net/>
Namespace
Composer\DownloaderCode
protected function getCommitLogs(string $fromReference, string $toReference, string $path) : string {
$this->execute([
'fossil',
'timeline',
'-t',
'ci',
'-W',
'0',
'-n',
'0',
'before',
$toReference,
], Platform::realpath($path), $output);
$log = '';
$match = '/\\d\\d:\\d\\d:\\d\\d\\s+\\[' . $toReference . '\\]/';
foreach ($this->process
->splitLines($output) as $line) {
if (Preg::isMatch($match, $line)) {
break;
}
$log .= $line;
}
return $log;
}