Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 37098:a9ea2b1e5c4b
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.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 24 Mar 2018 14:13:37 +0900 |
parents | 895f209b593b |
children | 6ca5f825a0ca |
comparison
equal
deleted
inserted
replaced
37097:8489e6f68ef2 | 37098:a9ea2b1e5c4b |
---|---|
1583 yield ''.join(buf) | 1583 yield ''.join(buf) |
1584 blen = 0 | 1584 blen = 0 |
1585 buf = [] | 1585 buf = [] |
1586 if buf: | 1586 if buf: |
1587 yield ''.join(buf) | 1587 yield ''.join(buf) |
1588 | |
1589 Abort = error.Abort | |
1590 | 1588 |
1591 def always(fn): | 1589 def always(fn): |
1592 return True | 1590 return True |
1593 | 1591 |
1594 def never(fn): | 1592 def never(fn): |