[PATCH 4 of 5] util: drop util.Abort in favor of error.Abort (API)
Yuya Nishihara
yuya at tcha.org
Sat Mar 24 05:53:56 EDT 2018
# HG changeset patch
# User Yuya Nishihara <yuya at 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.
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
More information about the Mercurial-devel
mailing list