hg branch - weakish/cheat GitHub Wiki

Hg branch

Set in ~.hgrc:

[bookmarks]
track.current = True

Create and switch to a new branch:

hg bookmark A
hg bookmark B

Switch to A

hg up A
# do some commits

Show branches:

hg bookmarks

Rebase B to A:

hg rebase -d A -S B