Mercurial shelve extension - how can you view the diff of a shelf?

12,773

Solution 1

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

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

Solution 2

Two ways:

  1. hg unshelve --inspect --name [name-of-shelf]
  2. cat .hg/shelves/[name-of-shelf]

Solution 3

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

Share:
12,773

Related videos on Youtube

Charles Finkel
Author by

Charles Finkel

Updated on June 19, 2022

Comments

  • Charles Finkel
    Charles Finkel about 2 years

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

  • Paul Bissex
    Paul Bissex over 9 years
    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