How can I apply "hg shelf"?

I would like to copy some changes from my Mercurial shelf to my working directory, leaving an unchanged copy on the shelf.

Git will let me do this with help git stash apply, however I don't see a way to get TortoiseHg to let me do the same.

Is there a way to restore copy changes from a shelf, rather than move them?

+4
source share
2 answers
  • The Shelve extension stores shelves in .hg/shelves. If you saved the specified shelf, you can copy the file named as the shelf tohg unshelve NAME
  • Unhelve command has an option --keep(see hg help shelve)
+5

hg help unshelve

, :

hg unshelve --keep     keeps shelve after unshelving

, , , .

+2

All Articles