check out a descendant commit
Update to a descendant commit of the current commit. When working with a stack
of commits, you can use
sl next to move up your stack with ease.
--newestflag to always pick the newest of multiple child commits. You can set
amend.alwaysnewestto true in your global Sapling config file to make this the default.
--mergeflag to bring along uncommitted changes to the destination commit.
--bookmarkflag to move to the next commit with a bookmark.
--rebaseflag to rebase any child commits that were left behind after
- Move 1 level up the stack:
- Move 2 levels up the stack:
sl next 2
- Move to the top of the stack:
sl next --top
|always pick the newest child when a commit has multiple children|
|rebase each commit if necessary|
|update to the head of the current stack|
|update to the first commit with a bookmark|
|do not activate the bookmark on the destination commit|
|move linearly towards the specified head|
|discard uncommitted changes (no backup)|
|move active bookmark|
|merge uncommitted changes|
|require clean working directory|