/**
  * Verify git version
  *
  * Verify hat the version of the installed GIT binary is at least 1.6. Will
  * throw an exception, if the binary is not available or too old.
  * 
  * @return void
  */
 protected static function checkVersion()
 {
     if (self::$checked === true) {
         return true;
     }
     $process = new pbsSystemProcess('env');
     $process->nonZeroExitCodeException = true;
     $process->argument('hg')->argument('--version')->execute();
     if (!preg_match('/\\(version (.*)\\)/', $process->stdoutOutput, $match)) {
         throw new vcsRuntimeException('Could not determine Mercurial version.');
     }
     if (version_compare($match[1], '1.3', '>=')) {
         return self::$checked = true;
     }
     throw new vcsRuntimeException('Mercurial is required in a minimum version of 1.3.');
 }