mercurial/__main__.py
author Raphaël Gomès <rgomes@octobus.net>
Wed, 09 Aug 2023 15:46:35 +0200
changeset 50983 8343947af6a7
parent 50697 e7ef11b75fdc
child 51864 1c5810ce737e
permissions -rw-r--r--
rust-config: fix incorrect coercion of null values to false As explained in the previous changeset: Probably being too trigger happy about boolean values, I incorrectly set the transform for a `None` to a `Some(false)`. It would cause for example the `ui.formatted` value to be set to `Some(false)`, which turns off the colors among other things, when `None` would trigger the automatic behavior.

def run():
    from . import demandimport

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

        dispatch.run()


if __name__ == '__main__':
    run()