mercurial/__init__.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Jul 2021 22:19:36 +0200
changeset 47660 aa2296893168
parent 43106 d783f945a701
child 48966 6000f5b25c9b
permissions -rw-r--r--
upgrade: avoid a traceback in case of unrecognized revlog Without this, in case of revlog name not matching any know pattern we would get a traceback. Raising a clear error seems simpler. Differential Revision: https://phab.mercurial-scm.org/D11202

# __init__.py - Startup and module loading logic for Mercurial.
#
# Copyright 2015 Gregory Szorc <gregory.szorc@gmail.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.

from __future__ import absolute_import

# Allow 'from mercurial import demandimport' to keep working.
import hgdemandimport

demandimport = hgdemandimport