D3423: firefoxtree: use error.Abort (bug 1456213); r?sheehan
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Mon Apr 23 18:28:31 UTC 2018
indygreg created this revision.
indygreg added a reviewer: sheehan.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
util.Abort was removed in Mercurial 4.6 it appears.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3423
AFFECTED FILES
hgext/firefoxtree/__init__.py
CHANGE DETAILS
diff --git a/hgext/firefoxtree/__init__.py b/hgext/firefoxtree/__init__.py
--- a/hgext/firefoxtree/__init__.py
+++ b/hgext/firefoxtree/__init__.py
@@ -372,7 +372,7 @@
return
if len(outgoing.missingheads) > 1:
- raise util.Abort(_('cannot push multiple heads to a Firefox tree; '
+ raise error.Abort(_('cannot push multiple heads to a Firefox tree; '
'limit pushed revisions using the -r argument'))
def wrappedpullobsolete(orig, pullop):
@@ -571,7 +571,7 @@
data is current.
"""
if not isfirefoxrepo(repo):
- raise util.Abort(_('fxheads is only available on Firefox repos'))
+ raise error.Abort(_('fxheads is only available on Firefox repos'))
if logcmdutil:
displayer = logcmdutil.changesetdisplayer(ui, repo, opts)
To: indygreg, sheehan, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list