--- a/mercurial/revlogutils/deltas.py Tue Sep 18 16:45:13 2018 -0700
+++ b/mercurial/revlogutils/deltas.py Tue Sep 18 16:47:09 2018 -0700
@@ -457,7 +457,8 @@
if validatehash:
revlog.checkhash(fulltext, expectednode, p1=p1, p2=p2)
if flags & REVIDX_ISCENSORED:
- raise error.RevlogError(_('node %s is not censored') % expectednode)
+ raise error.StorageError(_('node %s is not censored') %
+ expectednode)
except error.CensoredNodeError:
# must pass the censored index flag to add censored revisions
if not flags & REVIDX_ISCENSORED: