Mercurial > public > mercurial-scm > hg-stable
diff mercurial/error.py @ 46664:3941fe53670d
error: add `hint` attribute to `SidedataHashError`
This prevents an exception within an exception because `hint` does not exist.
Differential Revision: https://phab.mercurial-scm.org/D10024
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Thu, 18 Feb 2021 15:07:45 +0100 |
parents | 89a2afe31e82 |
children | 6fc57680cfd6 |
line wrap: on
line diff
--- a/mercurial/error.py Fri Feb 19 11:17:16 2021 +0100 +++ b/mercurial/error.py Thu Feb 18 15:07:45 2021 +0100 @@ -55,6 +55,7 @@ class SidedataHashError(RevlogError): def __init__(self, key, expected, got): + self.hint = None self.sidedatakey = key self.expecteddigest = expected self.actualdigest = got