Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I do "hg shelf apply"?

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

Git would let me do that with git stash apply, however I can't see a way to get TortoiseHg to let me do the same.

Is there any way to retrieve to copy the changes from the shelf, rather than move them?

like image 765
Steve Pitchers Avatar asked Sep 09 '14 20:09

Steve Pitchers


2 Answers

hg help unshelve

says that:

hg unshelve --keep     keeps shelve after unshelving

So I assume this is what you are looking for.

like image 186
Christophe Muller Avatar answered Nov 15 '22 04:11

Christophe Muller


  1. unshelve command has option --keep (see hg help shelve)

  2. Shelve extension stores shelves in .hg/shelves. If you stored named shelf, you can copy file, named as shelf, before hg unshelve NAME

like image 40
Lazy Badger Avatar answered Nov 15 '22 06:11

Lazy Badger