hg shelve equivalent of git stash drop

undefined picture undefined · Apr 3, 2012 · Viewed 14.3k times · Source

I have the hg shelve (not attic) extension installed, and I want to drop a patch. In git it would be git stash drop. How do I do this using the shelve extension?

Answer

BennyMcBenBen picture BennyMcBenBen · Aug 28, 2014

From the Mercurial shelve documentation (or using hg help shelve):

To delete specific shelved changes, use "--delete". To delete all shelved changes, use "--cleanup".

options:

-d --delete delete the named shelved change(s)

So if your patch was called my-patch, then you would delete it using:

hg shelve -d my-patch