Modified for mercurial prompt information.