This is an archive of the discontinued Mercurial Phabricator instance.

shelve: don't crash on file with unexpected extension in .hg/shelved/
ClosedPublic

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

Details

Summary

We assumed that the files in the .hg/shelved/ directory have an
extension. That's a valid assumption except that users may put garbage
in the directory. This patch fixes the crash by simply not assuming
that the result of splittin a string at '.' yields an extension. We
don't use the extension since the previous patch anyway.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage