mercurial/__main__.py
author Georges Racinet <georges.racinet@octobus.net>
Mon, 11 Mar 2024 13:23:18 +0100
branchstable
changeset 51470 406b413e3cf2
parent 50697 e7ef11b75fdc
child 51864 1c5810ce737e
permissions -rw-r--r--
rust-filepatterns: export glob_to_re function Making this function public should not risk freezing the internal API, and it can be useful for all downstream code that needs to perform glob matching against byte strings, such as RHGitaly where it will be useful to match on branches and tags.

def run():
    from . import demandimport

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

        dispatch.run()


if __name__ == '__main__':
    run()