Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / diffusion / request / DiffusionMercurialRequest.php
blobb626d62750d46cb3119535fd2294a3d22a6c6dfc
1 <?php
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() {
10 if ($this->branch) {
11 return $this->branch;
14 if ($this->repository) {
15 return $this->repository->getDefaultBranch();
18 throw new Exception(pht('Unable to determine branch!'));