Setup pre-/post- hooks

def uisetup(ui):
    """Setup pre-/post- hooks"""
    for hooktype in PREPOST_HOOKS:
        ui.setconfig("hooks", "pre-" + hooktype + ".autohooks", autohook)
        ui.setconfig("hooks", "post-" + hooktype + ".autohooks", autohook)