diff --git a/hgext/gpg.py b/hgext/gpg.py --- a/hgext/gpg.py +++ b/hgext/gpg.py @@ -227,7 +227,7 @@ def sign(ui, repo, *revs, **opts): data = node2txt(repo, n, sigver) sig = mygpg.sign(data) if not sig: - raise util.abort(_("error while signing")) + raise util.Abort(_("error while signing")) sig = binascii.b2a_base64(sig) sig = sig.replace("\n", "") sigmessage += "%s %s %s\n" % (hexnode, sigver, sig) diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1270,7 +1270,7 @@ def debugindex(ui, repo, file_, **opts): format = opts.get('format', 0) if format not in (0, 1): - raise util.abort("unknown format %d" % format) + raise util.Abort("unknown format %d" % format) if not r: r = revlog.revlog(util.opener(os.getcwd(), audit=False), file_)