PHP Class yii2tech\selfupdate\Mercurial

See also: https://mercurial.selenic.com/
Since: 1.0
Author: Paul Klimov ([email protected])
Inheritance: extends VersionControlSystem
Exibir arquivo Open project: yii2tech/selfupdate

Public Properties

Property Type Description
$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 Methods

Method Description
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.

Method Details

applyRemoteChanges() public method

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.
return boolean whether the changes have been applied successfully.

getCurrentBranch() public method

Returns currently active Mercurial branch name for the project.
public getCurrentBranch ( string $projectRoot ) : string
$projectRoot string VCS project root directory path.
return string branch name.

hasRemoteChanges() public method

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.
return boolean whether there are changes in remote repository.

Property Details

$binPath public_oe property

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