Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialDiff.php
Show All 36 Lines | final class DifferentialDiff | ||||
protected $description; | protected $description; | ||||
protected $viewPolicy; | protected $viewPolicy; | ||||
private $unsavedChangesets = array(); | private $unsavedChangesets = array(); | ||||
private $changesets = self::ATTACHABLE; | private $changesets = self::ATTACHABLE; | ||||
private $revision = self::ATTACHABLE; | private $revision = self::ATTACHABLE; | ||||
private $properties = array(); | private $properties = self::ATTACHABLE; | ||||
private $buildable = self::ATTACHABLE; | private $buildable = self::ATTACHABLE; | ||||
private $unitMessages = self::ATTACHABLE; | private $unitMessages = self::ATTACHABLE; | ||||
protected function getConfiguration() { | protected function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
▲ Show 20 Lines • Show All 279 Lines • ▼ Show 20 Lines | final class DifferentialDiff | ||||
} | } | ||||
public function attachRevision(DifferentialRevision $revision = null) { | public function attachRevision(DifferentialRevision $revision = null) { | ||||
$this->revision = $revision; | $this->revision = $revision; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function attachProperty($key, $value) { | public function attachProperty($key, $value) { | ||||
if (!is_array($this->properties)) { | |||||
$this->properties = array(); | |||||
} | |||||
$this->properties[$key] = $value; | $this->properties[$key] = $value; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getProperty($key) { | public function getProperty($key) { | ||||
return $this->assertAttachedKey($this->properties, $key); | return $this->assertAttachedKey($this->properties, $key); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | /* -( HarbormasterBuildableInterface )------------------------------------- */ | ||||
public function getAvailableBuildVariables() { | public function getAvailableBuildVariables() { | ||||
return array( | return array( | ||||
'buildable.diff' => | 'buildable.diff' => | ||||
pht('The differential diff ID, if applicable.'), | pht('The differential diff ID, if applicable.'), | ||||
'buildable.revision' => | 'buildable.revision' => | ||||
pht('The differential revision ID, if applicable.'), | pht('The differential revision ID, if applicable.'), | ||||
'repository.callsign' => | 'repository.callsign' => | ||||
pht('The callsign of the repository in Phabricator.'), | pht('The callsign of the repository.'), | ||||
'repository.phid' => | 'repository.phid' => | ||||
pht('The PHID of the repository in Phabricator.'), | pht('The PHID of the repository.'), | ||||
'repository.vcs' => | 'repository.vcs' => | ||||
pht('The version control system, either "svn", "hg" or "git".'), | pht('The version control system, either "svn", "hg" or "git".'), | ||||
'repository.uri' => | 'repository.uri' => | ||||
pht('The URI to clone or checkout the repository from.'), | pht('The URI to clone or checkout the repository from.'), | ||||
'repository.staging.uri' => | 'repository.staging.uri' => | ||||
pht('The URI of the staging repository.'), | pht('The URI of the staging repository.'), | ||||
'repository.staging.ref' => | 'repository.staging.ref' => | ||||
pht('The ref name for this change in the staging repository.'), | pht('The ref name for this change in the staging repository.'), | ||||
▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0