D10024: error: add `hint` attribute to `SidedataHashError`
Alphare (Raphaël Gomès)
phabricator at mercurial-scm.org
Fri Feb 19 11:15:59 UTC 2021
Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This prevents an exception within an exception because `hint` does not exist.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D10024
AFFECTED FILES
mercurial/error.py
CHANGE DETAILS
diff --git a/mercurial/error.py b/mercurial/error.py
--- a/mercurial/error.py
+++ b/mercurial/error.py
@@ -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
To: Alphare, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list