Patchwork [4,of,5] util: drop util.Abort in favor of error.Abort (API)

login
register
mail settings
Submitter Yuya Nishihara
Date March 24, 2018, 9:53 a.m.
Message ID <5814bdd0d29ae544f62c.1521885236@mimosa>
Download mbox | patch
Permalink /patch/29814/
State Accepted
Headers show

Comments

Yuya Nishihara - March 24, 2018, 9:53 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1521868417 -32400
#      Sat Mar 24 14:13:37 2018 +0900
# Node ID 5814bdd0d29ae544f62ca6a02678137b7e9de397
# Parent  9e694251731bf82895a6976ecba1afa3ece3fe2d
util: drop util.Abort in favor of error.Abort (API)

IIRC, error.Abort exists since Mercurial 1.2, so it should be pretty easy
for extensions authors to update their code.

.. api::

   The util.Abort alias has been removed. Use error.Abort.

Patch

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -1586,8 +1586,6 @@  def increasingchunks(source, min=1024, m
     if buf:
         yield ''.join(buf)
 
-Abort = error.Abort
-
 def always(fn):
     return True