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.
Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHGc062874a35db: shelve: don't crash on file with unexpected extension in .hg/shelved/
rHG8500d6210763: shelve: don't crash on file with unexpected extension in .hg/shelved/
rHG5456fef19d6b: shelve: don't crash on file with unexpected extension in .hg/shelved/
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage