public function getCurrentBranch($projectRoot)
    {
        $result = Shell::execute('(cd {projectRoot}; {binPath} branch)', [
            '{binPath}' => $this->binPath,
            '{projectRoot}' => $projectRoot,
        ]);
        return $result->outputLines[0];
    }
public function getCurrentBranch($projectRoot)
    {
        $result = Shell::execute('(cd {projectRoot}; {binPath} branch)', [
            '{binPath}' => $this->binPath,
            '{projectRoot}' => $projectRoot,
        ]);
        return $result->outputLines[0];
    }
public function getCurrentBranch ( $ projectRoot ) { $ result = Shell :: execute ( '(cd {projectRoot}; {binPath} branch)' , [ '{binPath}' => $ this -> binPath , '{projectRoot}' => $ projectRoot , ] ) ; return $ result -> outputLines [ 0 ] ; }
Returns currently active Mercurial branch name for the project.
@param string $projectRoot VCS project root directory path.
@return string branch name.
Returns currently active Mercurial branch name for the project .