diff mercurial/revlogutils/deltas.py @ 39774:4a2466b2a434

revlog: drop some more error aliases (API) These should be lightly used and I doubt that will be any strong objections to removing the aliases. Note that some uses of ProgrammingError in this file use translated messages. I'm pretty sure that's a bug. But the linters don't complain, so meh. Differential Revision: https://phab.mercurial-scm.org/D4652
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 18 Sep 2018 16:24:36 -0700
parents 2cd93a8d4bde
children b63dee7bd0d9
line wrap: on
line diff
--- a/mercurial/revlogutils/deltas.py	Tue Sep 18 16:18:37 2018 -0700
+++ b/mercurial/revlogutils/deltas.py	Tue Sep 18 16:24:36 2018 -0700
@@ -33,8 +33,6 @@
     mdiff,
 )
 
-CensoredNodeError = error.CensoredNodeError
-
 # maximum <delta-chain-data>/<revision-text-length> ratio
 LIMIT_DELTA2TEXT = 2
 
@@ -460,7 +458,7 @@
             revlog.checkhash(fulltext, expectednode, p1=p1, p2=p2)
         if flags & REVIDX_ISCENSORED:
             raise error.RevlogError(_('node %s is not censored') % expectednode)
-    except CensoredNodeError:
+    except error.CensoredNodeError:
         # must pass the censored index flag to add censored revisions
         if not flags & REVIDX_ISCENSORED:
             raise