Mercurial > hg-git
diff hggit/gitdirstate.py @ 1128:6141895a53c9
compat: switch from hgutil.Abort to error.Abort
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Wed, 02 May 2018 20:43:17 -0500 |
parents | 8ed6c0cae9b8 |
children | c4703246f350 |
line wrap: on
line diff
--- a/hggit/gitdirstate.py Thu May 17 07:51:47 2018 +0200 +++ b/hggit/gitdirstate.py Wed May 02 20:43:17 2018 -0500 @@ -5,6 +5,7 @@ from mercurial import ( dirstate, + error, match as matchmod, scmutil, util, @@ -88,21 +89,21 @@ return util.never try: ignorefunc = matchmod.match(root, '', [], allpats) - except util.Abort: + except error.Abort: for f, patlist in pats: try: matchmod.match(root, '', [], patlist) - except util.Abort, inst: + except error.Abort, inst: if not ignoremod: # in this case, patlist is ['include: FILE'], and # inst[0] should already include FILE raise - raise util.Abort('%s: %s' % (f, inst[0])) + raise error.Abort('%s: %s' % (f, inst[0])) if extrapatterns: try: matchmod.match(root, '', [], extrapatterns) - except util.Abort, inst: - raise util.Abort('%s: %s' % ('extra patterns', inst[0])) + except error.Abort, inst: + raise error.Abort('%s: %s' % ('extra patterns', inst[0])) return ignorefunc