def updatemsg(repo, ui):
    previousargs = repo.localvfs.tryreadutf8(UPDATEARGS)
    if previousargs:
        continuecmd = "hg " + previousargs
    else:
        continuecmd = "hg update " + repo.localvfs.readutf8("updatestate")[:12]
    abortcmd = updatecleanmsg(repo._activebookmark)
    helpmessage(ui, continuecmd, abortcmd)