Page MenuHomec4science

DiffusionMercurialRequest.php
No OneTemporary

File Metadata

Created
Sun, Sep 15, 04:09

DiffusionMercurialRequest.php

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

Event Timeline