Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FossilDownloader.php

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/&gt;

Namespace

Composer\Downloader

Code

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal