Search code examples
sshmercurialtortoisehgmercurial-subrepossubrepos

How prevent HG Workbench to ask for user name by using subrepositories?


I use HG Workbench and subrepositories over a ssh connection. I use also ssh-rsa to avoid typing my password every time. This works great for the main repository. But if I push or pull HG Workbench (or command shell) promt's with a dialog to typing my login name for every subreposititory. Can I prevent this?

Update:

I use windows. Also I have a [ui] section with username in my global mercurial.ini and in hgrc of every subrepositories.


Solution

  • On windows edit the global mercurial.ini settings file and add ssh key to the ui section:

    [ui]
    ssh = tortoiseplink.exe -l <username>