[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/diffusion/request/ -> DiffusionMercurialRequest.php (source)

   1  <?php
   2  
   3  final class DiffusionMercurialRequest extends DiffusionRequest {
   4  
   5    public function supportsBranches() {
   6      return true;
   7    }
   8  
   9    protected function isStableCommit($symbol) {
  10      return preg_match('/^[a-f0-9]{40}\z/', $symbol);
  11    }
  12  
  13    public function getBranch() {
  14      if ($this->branch) {
  15        return $this->branch;
  16      }
  17  
  18      if ($this->repository) {
  19        return $this->repository->getDefaultBranch();
  20      }
  21  
  22      throw new Exception('Unable to determine branch!');
  23    }
  24  
  25  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1