Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to use Shelve extension of Mercurial

📅 2014-Apr-11 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ extension, mercurial, shelve ⬩ 📚 Archive

The Shelve extension of Mercurial is useful to temporarily store away your uncommitted changes and then restore them back. For example, if you are working on some changes, and before you commit it, someone comes in and asks you to test something on an earlier version. You can shelve away your changes, finish the testing and unshelve the changes and continue.

$ sudo pip install hgshelve
[extensions]
shelve =
$ hg shelve

It will be stored using the name default. You can provide other names if you wish.

$ hg unshelve

Tried with: Mercurial 2.8.2 and Ubuntu 12.04


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧