mercurial/__main__.py
author Arseniy Alekseyev <aalekseyev@janestreet.com>
Wed, 02 Oct 2024 14:51:56 +0100
changeset 51919 ceaf92d6d380
parent 51864 1c5810ce737e
permissions -rw-r--r--
tests: always access the mercurial repo through `helpers-testrepo.sh` In some contexts the mercurial repo needs to be accessed through system hg. That's what `helpers-testrepo.sh` enforces, but some tests incorrectly use the mercurial repo without going through that script. This patch fixes those tests.

from __future__ import annotations


def run():
    from . import demandimport

    with demandimport.tracing.log('hg script'):
        demandimport.enable()
        from . import dispatch

        dispatch.run()


if __name__ == '__main__':
    run()