Skip to content
Snippets Groups Projects
Commit c062874a35db authored by Martin von Zweigbergk's avatar Martin von Zweigbergk
Browse files

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

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.

Differential Revision: https://phab.mercurial-scm.org/D9720
parent 61f8fc12e167
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment