3 final class DiffusionMercurialRequest
extends DiffusionRequest
{
5 protected function isStableCommit($symbol) {
6 return preg_match('/^[a-f0-9]{40}\z/', $symbol);
9 public function getBranch() {
14 if ($this->repository
) {
15 return $this->repository
->getDefaultBranch();
18 throw new Exception(pht('Unable to determine branch!'));