简体   繁体   中英

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?

  1. Shelve extension stores shelves in .hg/shelves . If you stored named shelf, you can copy file, named as shelf, before hg unshelve NAME
  2. unshelve command has option --keep (see hg help shelve )

hg help unshelve

says that:

hg unshelve --keep     keeps shelve after unshelving

So I assume this is what you are looking for.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM