diff hgsubversion/layouts/__init__.py @ 1555:cff81f35b31e

cleanup: reference Abort from mercurial.error instead of mercurial.util It's been there since hg 1.7 or so, which lets us avoid any need for compat shims.
author Augie Fackler <raf@durin42.com>
date Sat, 24 Mar 2018 16:39:30 -0400
parents 91eb0ad1376a
children
line wrap: on
line diff
--- a/hgsubversion/layouts/__init__.py
+++ b/hgsubversion/layouts/__init__.py
@@ -9,6 +9,7 @@ NB: this has a long way to go before it 
 
 """
 
+from mercurial import error as hgerror
 from mercurial import util as hgutil
 
 import custom
@@ -39,5 +40,5 @@ def layout_from_name(name, meta):
     """
 
     if name not in NAME_TO_CLASS:
-        raise hgutil.Abort('Unknown hgsubversion layout: %s' % name)
+        raise hgerror.Abort('Unknown hgsubversion layout: %s' % name)
     return NAME_TO_CLASS[name](meta)