~ubuntu-branches/ubuntu/wily/phabricator/wily

« back to all changes in this revision

Viewing changes to phabricator/src/applications/repository/storage/PhabricatorRepository.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2015-06-13 10:52:10 UTC
  • mfrom: (0.30.1) (0.29.1) (0.17.4) (2.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20150613105210-5uirr7tvnk0n6e6y
Tags: 0~git20150613-1
* New snapshot release (closes: #787805)
* fixed typo in logrotate script (closes: #787645)

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
      'isHosted'    => $this->isHosted(),
137
137
      'isImporting' => $this->isImporting(),
138
138
      'encoding'    => $this->getDetail('encoding'),
 
139
      'staging' => array(
 
140
        'supported' => $this->supportsStaging(),
 
141
        'prefix' => 'phabricator',
 
142
        'uri' => $this->getStagingURI(),
 
143
      ),
139
144
    );
140
145
  }
141
146
 
1797
1802
  }
1798
1803
 
1799
1804
 
 
1805
/* -(  Staging  )-------------------------------------------------------------*/
 
1806
 
 
1807
 
 
1808
  public function supportsStaging() {
 
1809
    return $this->isGit();
 
1810
  }
 
1811
 
 
1812
 
 
1813
  public function getStagingURI() {
 
1814
    if (!$this->supportsStaging()) {
 
1815
      return null;
 
1816
    }
 
1817
    return $this->getDetail('staging-uri', null);
 
1818
  }
 
1819
 
 
1820
 
1800
1821
/* -(  PhabricatorApplicationTransactionInterface  )------------------------- */
1801
1822
 
1802
1823