Mercurial tip of the day: tortoisehg's shelve

Wed 22 June 2011

Shelved your local changes using tortoisehg's shelve UI and now you feel silly because tortoisehg won't let you apply them because the first hunk is rejected? No need to feel silly any more, just add this in .hgrc (or mercurial.ini for windows users):


This is a shelve extension bundled with tortoisehg. Other shelve extensions don't use the same store as tortoisehg.

Now just run:

hg unshelve --force

The rejected hunks will be ignored (you still get the .rej files).

This entry was tagged as mercurial