47

I see no documentation on how to do this in the docs.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Charles Finkel
  • 1,540
  • 2
  • 10
  • 12

3 Answers3

59

hg shelve -l -p [name of shelf].

To get the shelves list one could use hg shelve -l.

iurii
  • 2,597
  • 22
  • 25
7

Two ways:

  1. hg unshelve --inspect --name [name-of-shelf]
  2. cat .hg/shelves/[name-of-shelf]
Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Charles Finkel
  • 1,540
  • 2
  • 10
  • 12
  • 3
    At 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
4

Try, hg shelve --patch name — worked for me in Mercurial v 3.6.3

Zorayr
  • 23,770
  • 8
  • 136
  • 129