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

Breadcrumb

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

function SvnDownloader::discardChanges

@phpstan-return PromiseInterface<void|null>

1 call to SvnDownloader::discardChanges()
SvnDownloader::cleanChanges in vendor/composer/composer/src/Composer/Downloader/SvnDownloader.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Downloader/SvnDownloader.php, line 236

Class

SvnDownloader
@author Ben Bieker <mail@ben-bieker.de> @author Till Klampaeckel <till@php.net>

Namespace

Composer\Downloader

Code

protected function discardChanges(string $path) : PromiseInterface {
    if (0 !== $this->process
        ->execute([
        'svn',
        'revert',
        '-R',
        '.',
    ], $output, $path)) {
        throw new \RuntimeException("Could not reset changes\n\n:" . $this->process
            ->getErrorOutput());
    }
    return \React\Promise\resolve(null);
}

API Navigation

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