Changeset View
Changeset View
Standalone View
Standalone View
src/repository/state/ArcanistRepositoryLocalState.php
Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | if ($untracked || $unstaged || $uncommitted) { | ||||
'You can not continue with uncommitted changes. Commit or '. | 'You can not continue with uncommitted changes. Commit or '. | ||||
'discard them before proceeding.')); | 'discard them before proceeding.')); | ||||
} | } | ||||
} | } | ||||
$this->executeSaveLocalState(); | $this->executeSaveLocalState(); | ||||
$this->shouldRestore = true; | $this->shouldRestore = true; | ||||
// TODO: Detect when we're in the middle of a rebase. | |||||
// TODO: Detect when we're in the middle of a cherry-pick. | |||||
return $this; | return $this; | ||||
} | } | ||||
final public function restoreLocalState() { | final public function restoreLocalState() { | ||||
$this->shouldRestore = false; | $this->shouldRestore = false; | ||||
$this->executeRestoreLocalState(); | $this->executeRestoreLocalState(); | ||||
if ($this->stashRef !== null) { | if ($this->stashRef !== null) { | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |