Patchwork D3423: firefoxtree: use error.Abort (bug 1456213); r?sheehan

login
register
mail settings
Submitter phabricator
Date April 23, 2018, 6:28 p.m.
Message ID <differential-rev-PHID-DREV-yomtfa5cmadrk6mlkvyr-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/31213/
State Superseded
Headers show

Comments

phabricator - April 23, 2018, 6:28 p.m.
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




To: indygreg, sheehan, #hg-reviewers
Cc: mercurial-devel

Patch

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)