def extsetup(ui):
    if ui.configbool("morestatus", "show") and not ui.plain():
        wrapcommand(commands.table, "status", statuscmd)
        # Write down `hg update` args to show the continue command in
        # interrupted update state.
        ui.setconfig("hooks", "pre-update.morestatus", saveupdateargs)
        ui.setconfig("hooks", "post-update.morestatus", cleanupdateargs)