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

Breadcrumb

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

function HgDriver::getRootIdentifier

@inheritDoc

Overrides VcsDriverInterface::getRootIdentifier

File

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

Class

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

Namespace

Composer\Repository\Vcs

Code

public function getRootIdentifier() : string {
    if (null === $this->rootIdentifier) {
        $this->process
            ->execute([
            'hg',
            'tip',
            '--template',
            '{node}',
        ], $output, $this->repoDir);
        $output = $this->process
            ->splitLines($output);
        $this->rootIdentifier = $output[0];
    }
    return $this->rootIdentifier;
}
RSS feed
Powered by Drupal