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

Breadcrumb

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

function HgDriver::getChangeDate

@inheritDoc

Overrides VcsDriverInterface::getChangeDate

File

vendor/composer/composer/src/Composer/Repository/Vcs/HgDriver.php, line 147

Class

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

Namespace

Composer\Repository\Vcs

Code

public function getChangeDate(string $identifier) : ?\DateTimeImmutable {
    $this->process
        ->execute([
        'hg',
        'log',
        '--template',
        '{date|rfc3339date}',
        '-r',
        $identifier,
    ], $output, $this->repoDir);
    return new \DateTimeImmutable(trim($output), new \DateTimeZone('UTC'));
}
RSS feed
Powered by Drupal