Mercurial > hg
diff mercurial/revlogutils/deltas.py @ 39773:2cd93a8d4bde
revlog: drop RevlogError alias (API)
error.RevlogError was moved from revlog.py in 08cabecfa8a8 in
2009. revlog.RevlogError has remained as an alias ever since.
Let's drop the alias and use error.RevlogError directly.
Differential Revision: https://phab.mercurial-scm.org/D4651
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 18 Sep 2018 16:18:37 -0700 |
parents | a911932d5003 |
children | 4a2466b2a434 |
line wrap: on
line diff
--- a/mercurial/revlogutils/deltas.py Tue Sep 18 16:52:11 2018 -0700 +++ b/mercurial/revlogutils/deltas.py Tue Sep 18 16:18:37 2018 -0700 @@ -33,7 +33,6 @@ mdiff, ) -RevlogError = error.RevlogError CensoredNodeError = error.CensoredNodeError # maximum <delta-chain-data>/<revision-text-length> ratio @@ -460,7 +459,7 @@ if validatehash: revlog.checkhash(fulltext, expectednode, p1=p1, p2=p2) if flags & REVIDX_ISCENSORED: - raise RevlogError(_('node %s is not censored') % expectednode) + raise error.RevlogError(_('node %s is not censored') % expectednode) except CensoredNodeError: # must pass the censored index flag to add censored revisions if not flags & REVIDX_ISCENSORED: