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

Breadcrumb

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

function HgDownloader::getLocalChanges

@inheritDoc

Overrides ChangeReportInterface::getLocalChanges

File

vendor/composer/composer/src/Composer/Downloader/HgDownloader.php, line 88

Class

HgDownloader
@author Per Bernhardt <plb@webfactory.de>

Namespace

Composer\Downloader

Code

public function getLocalChanges(PackageInterface $package, string $path) : ?string {
    if (!is_dir($path . '/.hg')) {
        return null;
    }
    $this->process
        ->execute([
        'hg',
        'st',
    ], $output, realpath($path));
    $output = trim($output);
    return strlen($output) > 0 ? $output : null;
}

API Navigation

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