Changeset View
Changeset View
Standalone View
Standalone View
src/repository/state/ArcanistRepositoryLocalState.php
Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | abstract class ArcanistRepositoryLocalState | ||||
final public function __destruct() { | final public function __destruct() { | ||||
if ($this->shouldRestore) { | if ($this->shouldRestore) { | ||||
$this->restoreLocalState(); | $this->restoreLocalState(); | ||||
} | } | ||||
$this->discardLocalState(); | $this->discardLocalState(); | ||||
} | } | ||||
final public function getRestoreCommandsForDisplay() { | |||||
return $this->newRestoreCommandsForDisplay(); | |||||
} | |||||
protected function canStashChanges() { | protected function canStashChanges() { | ||||
return false; | return false; | ||||
} | } | ||||
protected function saveStash() { | protected function saveStash() { | ||||
throw new PhutilMethodNotImplementedException(); | throw new PhutilMethodNotImplementedException(); | ||||
} | } | ||||
protected function restoreStash($ref) { | protected function restoreStash($ref) { | ||||
throw new PhutilMethodNotImplementedException(); | throw new PhutilMethodNotImplementedException(); | ||||
} | } | ||||
protected function discardStash($ref) { | protected function discardStash($ref) { | ||||
throw new PhutilMethodNotImplementedException(); | throw new PhutilMethodNotImplementedException(); | ||||
} | } | ||||
abstract protected function executeSaveLocalState(); | abstract protected function executeSaveLocalState(); | ||||
abstract protected function executeRestoreLocalState(); | abstract protected function executeRestoreLocalState(); | ||||
abstract protected function executeDiscardLocalState(); | abstract protected function executeDiscardLocalState(); | ||||
abstract protected function newRestoreCommandsForDisplay(); | |||||
protected function getIgnoreHints() { | protected function getIgnoreHints() { | ||||
return array(); | return array(); | ||||
} | } | ||||
final protected function newDisplayFileList($title, array $files) { | final protected function newDisplayFileList($title, array $files) { | ||||
if (!$files) { | if (!$files) { | ||||
return null; | return null; | ||||
Show All 30 Lines |