PHP Класс yii2tech\selfupdate\Mercurial

См. также: https://mercurial.selenic.com/
С версии: 1.0
Автор: Paul Klimov ([email protected])
Наследование: extends VersionControlSystem
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$binPath path to the 'hg' bin command. By default simple 'hg' is used assuming it available as global shell command. It could be '/usr/bin/hg' for example.

Открытые методы

Метод Описание
applyRemoteChanges ( string $projectRoot, string &$log = null ) : boolean Applies changes from remote repository.
getCurrentBranch ( string $projectRoot ) : string Returns currently active Mercurial branch name for the project.
hasRemoteChanges ( string $projectRoot, string &$log = null ) : boolean Checks, if there are some changes in remote repository.

Описание методов

applyRemoteChanges() публичный Метод

Applies changes from remote repository.
public applyRemoteChanges ( string $projectRoot, string &$log = null ) : boolean
$projectRoot string VCS project root directory path.
$log string if parameter passed it will be filled with related log string.
Результат boolean whether the changes have been applied successfully.

getCurrentBranch() публичный Метод

Returns currently active Mercurial branch name for the project.
public getCurrentBranch ( string $projectRoot ) : string
$projectRoot string VCS project root directory path.
Результат string branch name.

hasRemoteChanges() публичный Метод

Checks, if there are some changes in remote repository.
public hasRemoteChanges ( string $projectRoot, string &$log = null ) : boolean
$projectRoot string VCS project root directory path.
$log string if parameter passed it will be filled with related log string.
Результат boolean whether there are changes in remote repository.

Описание свойств

$binPath публичное свойство

path to the 'hg' bin command. By default simple 'hg' is used assuming it available as global shell command. It could be '/usr/bin/hg' for example.
public $binPath