Changeset View
Changeset View
Standalone View
Standalone View
src/repository/state/ArcanistRepositoryLocalState.php
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | abstract class ArcanistRepositoryLocalState | ||||
final public function getRestoreCommandsForDisplay() { | final public function getRestoreCommandsForDisplay() { | ||||
return $this->newRestoreCommandsForDisplay(); | return $this->newRestoreCommandsForDisplay(); | ||||
} | } | ||||
protected function canStashChanges() { | protected function canStashChanges() { | ||||
return false; | return false; | ||||
} | } | ||||
/** | |||||
* Stash uncommitted changes temporarily. Use {@method:restoreStash()} to | |||||
* bring these changes back. | |||||
* | |||||
* Note that saving and restoring changes may not behave as expected if used | |||||
* in a non-stack manner, i.e. proper use involves only restoring stashes in | |||||
* the reverse order they were saved. | |||||
* | |||||
* @return wild A reference object that refers to the changes which were | |||||
* saved. When restoring changes this should be passed to | |||||
* {@method:restoreStash()}. | |||||
*/ | |||||
protected function saveStash() { | protected function saveStash() { | ||||
throw new PhutilMethodNotImplementedException(); | throw new PhutilMethodNotImplementedException(); | ||||
} | } | ||||
/** | |||||
* Restores changes that were previously stashed by {@method:saveStash()}. | |||||
* | |||||
* @param wild A reference object referring to which previously stashed | |||||
* changes to restore, from invoking {@method:saveStash()}. | |||||
*/ | |||||
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(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 53 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