This is an archive of the discontinued Mercurial Phabricator instance.

shelve: don't include invalid shelves in `hg shelve --list`
ClosedPublic

Authored by martinvonz on Jan 11 2021, 1:04 PM.

Details

Summary

Before this patch, if a shelved change is missing its .hg file, we
still list it in hg shelve --list, but then hg unshelve
crashes. This patch makes it so we only list valid shelved changes.

This patch means that users who do touch .hg/shelve/buy-milk.patch
as a form of TODO list will no longer see their TODO items in `hg
shelve --list`.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.