Mode line function supports mercurial