Pergunta

I made the mistake about 3 months ago of doing a force push to Mercurial, and somehow, it has remembered that...so whenever I push now, it forces it by default:

% hg --repository C:\Projects\Sonic\DDSF push --force ssh://192.168.52.2:22//hg/DDSF

How do I get rid of this setting and go back to the regular pushes?

My team gets mad at me daily because I'm constantly creating new heads and breaking stuff :(

I've checked my .hgrc file and its not there. I've also re-installed the TortoiseHg client in hopes that it would solve this problem but it hasn't.

Foi útil?

Solução

In TortoiseHG, you can disable the setting as follows:

  1. Go to the "Synchronize" screen via the menu View -> Synchronize or by clicking this button in the toolbar:
    toolbar

  2. Click the "Options" button under the list of commits:
    options button

  3. In the options window, there's a checkbox for the "force push" setting:
    force push settings


By the way, when force is enabled, you should already see this below the "Options" button in step two:
enter image description here

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top