Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/ssh/DiffusionGitSSHWorkflow.php
<?php | <?php | ||||
abstract class DiffusionGitSSHWorkflow | abstract class DiffusionGitSSHWorkflow | ||||
extends DiffusionSSHWorkflow | extends DiffusionSSHWorkflow | ||||
implements DiffusionRepositoryClusterEngineLogInterface { | implements DiffusionRepositoryClusterEngineLogInterface { | ||||
private $engineLogProperties = array(); | |||||
protected function writeError($message) { | protected function writeError($message) { | ||||
// Git assumes we'll add our own newlines. | // Git assumes we'll add our own newlines. | ||||
return parent::writeError($message."\n"); | return parent::writeError($message."\n"); | ||||
} | } | ||||
public function writeClusterEngineLogMessage($message) { | public function writeClusterEngineLogMessage($message) { | ||||
parent::writeError($message); | parent::writeError($message); | ||||
$this->getErrorChannel()->update(); | $this->getErrorChannel()->update(); | ||||
} | } | ||||
public function writeClusterEngineLogProperty($key, $value) { | |||||
$this->engineLogProperties[$key] = $value; | |||||
} | |||||
protected function getClusterEngineLogProperty($key, $default = null) { | |||||
return idx($this->engineLogProperties, $key, $default); | |||||
} | |||||
protected function identifyRepository() { | protected function identifyRepository() { | ||||
$args = $this->getArgs(); | $args = $this->getArgs(); | ||||
$path = head($args->getArg('dir')); | $path = head($args->getArg('dir')); | ||||
return $this->loadRepositoryWithPath( | return $this->loadRepositoryWithPath( | ||||
$path, | $path, | ||||
PhabricatorRepositoryType::REPOSITORY_TYPE_GIT); | PhabricatorRepositoryType::REPOSITORY_TYPE_GIT); | ||||
} | } | ||||
Show All 24 Lines |