mercurial/__main__.py
author Matt Harbison <matt_harbison@yahoo.com>
Fri, 01 Dec 2023 23:58:12 -0500
branchstable
changeset 51147 4ed9efb25bc7
parent 50697 e7ef11b75fdc
child 51864 1c5810ce737e
permissions -rw-r--r--
phabricator: stringify the argument to `getattr()` This fixes a "TypeError: getattr(): attribute name must be string" crash and subsequent test spew. This likely broke in 18c8c18993f0 and was missed in CI because `pytest-vcr` is missing.

def run():
    from . import demandimport

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

        dispatch.run()


if __name__ == '__main__':
    run()