Mercurial > hgsubversion
comparison 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 |
comparison
equal
deleted
inserted
replaced
1554:258fb67fb956 | 1555:cff81f35b31e |
---|---|
7 | 7 |
8 NB: this has a long way to go before it does everything it claims to | 8 NB: this has a long way to go before it does everything it claims to |
9 | 9 |
10 """ | 10 """ |
11 | 11 |
12 from mercurial import error as hgerror | |
12 from mercurial import util as hgutil | 13 from mercurial import util as hgutil |
13 | 14 |
14 import custom | 15 import custom |
15 import single | 16 import single |
16 import standard | 17 import standard |
37 name to pass to this function. | 38 name to pass to this function. |
38 | 39 |
39 """ | 40 """ |
40 | 41 |
41 if name not in NAME_TO_CLASS: | 42 if name not in NAME_TO_CLASS: |
42 raise hgutil.Abort('Unknown hgsubversion layout: %s' % name) | 43 raise hgerror.Abort('Unknown hgsubversion layout: %s' % name) |
43 return NAME_TO_CLASS[name](meta) | 44 return NAME_TO_CLASS[name](meta) |