Mercurial > hg
view mercurial/__main__.py @ 50809:53d77f96e049
rhg: tweak rhg fallback code structure
The goal here is to share the code that accesses the config setting,
but also move it to the top-level, so that we can more easily change
this code later.
(in fact in Jane Street we want to make it choose chg in some cases)
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Fri, 28 Jul 2023 17:08:37 +0100 |
parents | e7ef11b75fdc |
children | 1c5810ce737e |
line wrap: on
line source
def run(): from . import demandimport with demandimport.tracing.log('hg script'): demandimport.enable() from . import dispatch dispatch.run() if __name__ == '__main__': run()