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

Breadcrumb

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

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\Downloader

Code

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

API Navigation

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