This extension is distributed with Mercurial 2.8 and later.
Author: Bryan O'Sullivan
Current maintainer: Facebook
The shelve extension lets you set your pending changes aside temporarily and restore them at a later time. It is useful in situations where you need to switch tasks, but are not ready to commit your current work.
Configure your .hgrc to enable the extension by adding following lines:
Temporarily stash away changes:
List all existing shelves:
hg shelve --list
Get the changes back into the working directory:
Shelves can be given custom names (the default name is your active bookmark or branch):
hg shelve --name <name> hg unshelve <name>
See hg shelve --help for advance usage.