Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suppress "Push to remote repository?" prompt in TortoiseHg when pushing over SSH

In TortoiseHg, is it possible to suppress the confirm popup window that appears when pushing to an SSH repository?

It's the popup titled "Confirm Push to remote Repository" with a body text of "Push to remote repository ssh://server/repo?".

While I appreciate the warning, I'd like to disable it at least for some repos or some ssh paths.

Is it possible to disable this confirmation dialog and always allow the push?

enter image description here

like image 203
Michael La Voie Avatar asked Oct 26 '11 20:10

Michael La Voie


3 Answers

Warning: This is a terrible answer and you shouldn't use it. But lacking a better option, here it is:

It is possible to write an AutoIt script that instantly clicks through this box. This lacks finesse, since it ignores what repo you are trying to push to, but if you just want the box to go away, it mostly does the job.

While 1
    WinWaitActive("Confirm Push to remote Repository")
    Send("y")
Wend
like image 177
alficles Avatar answered Nov 13 '22 09:11

alficles


This issue has now been resolved by the mercurial developers. See https://bitbucket.org/tortoisehg/thg/issue/190/push-always-wants-confirmation

like image 20
Ketobomb Avatar answered Nov 13 '22 10:11

Ketobomb


In the Synchronize view, click the Options button, and check Allow push of a new branch

enter image description here

like image 29
Josh Noe Avatar answered Nov 13 '22 09:11

Josh Noe