1. Michael Gatto
  2. VersionControl_Hg

Source

VersionControl_Hg / Trunk / Tests / Functional / test_HgConstructor_InvalidRepository.php

The default branch has multiple heads

mgatto fced039 

Michael Gatto 6a693b0 

mgatto fced039 




Michael Gatto 6a693b0 
mgatto fced039 

Michael Gatto 6a693b0 
mgatto fced039 
<?php

include_once '../../VersionControl/Hg.php';

/* construct with an invalid repository */
echo "construct with an invalid repository\r\n";
try {
    $repo = realpath("C:\Windows\Temp");
    $hg = new VersionControl_Hg($repo);
    var_dump($hg);
}
catch (Exception $e) {
    var_dump(get_class($e), $e->getMessage());
}