changeset 46271 | b2a8ff736ecf |
parent 46270 | 161313f9c467 |
child 46272 | a68d3386138c |
--- a/mercurial/shelve.py Thu Jan 07 12:22:39 2021 -0800 +++ b/mercurial/shelve.py Thu Jan 07 12:58:43 2021 -0800 @@ -117,12 +117,7 @@ return self.vfs.stat(self.fname) def opener(self, mode=b'rb'): - try: - return self.vfs(self.fname, mode) - except IOError as err: - if err.errno != errno.ENOENT: - raise - raise error.Abort(_(b"shelved change '%s' not found") % self.name) + return self.vfs(self.fname, mode) def applybundle(self, tr): fp = self.opener()