I see no documentation on how to do this in the docs.
Asked
Active
Viewed 1.4k times
3 Answers
59
hg shelve -l -p [name of shelf]
.
To get the shelves list one could use hg shelve -l
.

iurii
- 2,597
- 22
- 25
-
This works, but the `-l` isn't needed (at least as of Mercurial 6.5). – Paul Bissex Aug 06 '23 at 15:30
7
Two ways:
hg unshelve --inspect --name [name-of-shelf]
cat .hg/shelves/[name-of-shelf]

Vadim Kotov
- 8,084
- 8
- 48
- 62

Charles Finkel
- 1,540
- 2
- 10
- 12
-
3At least as of the hg version I'm running (2.8.2), neither of these quite work. There's no `--inspect` option on unshelve. The second will work (and be a bit more flexible) as: `cat \`hg root\`/shelved/NAME.patch` – Paul Bissex Mar 07 '15 at 15:23