repository changed while pushing - please try again

Лежанкин Иван abyss.7 at gmail.com
Sat Oct 8 13:36:53 UTC 2016


Hi!

Sometimes while pushing to the Hg repository I get an error:

> abort: push failed:
> 'repository changed while pushing - please try again'

It's quite surprising for me that I can't push simultaneously to different
branches - as I see in the source code this error occurs when any(!) head
is changed while another push is in progress. It looks like a serious
design flow - can you explain, please, why is it happening and what is a
reason for such design? - May be I missed something.

Also, I found that if I force-push ('-f' argument) then no errors occur. Is
it a good solution to always force-push when I know that _almost_ all
simultaneous pushes go to different heads?

Thanks in advance!

Best regards, Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial/attachments/20161008/49e22bb9/attachment.html>


More information about the Mercurial mailing list