class Vcs

Class Vcs

Helper for version control systems

Constants

MERCURIAL

GIT

SUBVERSION

Methods

static 
init($vcs, $dir)

Init local repository

static 
checkout($vcs, $dir, $branch)

Pull and update source code

static string
getDefaultBranch($vcs)

Return default branch

Details

at line 42
static init($vcs, $dir)

Init local repository

Parameters

$vcs
$dir

at line 73
static checkout($vcs, $dir, $branch)

Pull and update source code

Parameters

$vcs
$dir
$branch

at line 100
static string getDefaultBranch($vcs)

Return default branch

Parameters

$vcs

Return Value

string