Page MenuHomestyx hydra

DiffusionMercurialRequest.php
No OneTemporary

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('Unable to determine branch!');
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Apr 28, 5:52 PM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1314833
Default Alt Text
DiffusionMercurialRequest.php (482 B)

Event Timeline