Support authenticating for mercurial