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:
hg unshelve --inspect --name [name-of-shelf]
cat .hg/shelves/[name-of-shelf]
Solution 3
Try, hg shelve --patch name
— worked for me in Mercurial v 3.6.3
Related videos on Youtube
Author by
Charles Finkel
Updated on June 19, 2022Comments
-
Charles Finkel about 2 years
I see no documentation on how to do this in the docs.
-
Paul Bissex over 9 yearsAt 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