errors: format "abort: " text in a new Abort.format() method
This remove some duplication we had.
Differential Revision: https://phab.mercurial-scm.org/D9348
from __future__ import absolute_importimport hashlibtry: from ..thirdparty import sha1dc sha1 = sha1dc.sha1except (ImportError, AttributeError): sha1 = hashlib.sha1