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