run-tests: detect HGWITHRUSTEXT value
Without this, some manual check in tests/test-dirstate.t could get confused by
the lack of `rust` in module policy and break the test.
def run(): from . import demandimport with demandimport.tracing.log('hg script'): demandimport.enable() from . import dispatch dispatch.run()if __name__ == '__main__': run()