rust-index: return an error on a bad index header
This is more idiomatic and allows us to better handle the problem later.
from __future__ import annotations
def run():
from . import demandimport
with demandimport.tracing.log('hg script'):
demandimport.enable()
from . import dispatch
dispatch.run()
if __name__ == '__main__':
run()