Why can't I push this change to my 'main' mercurial repository?

前端 未结 3 639
情话喂你
情话喂你 2021-02-01 00:57

I am trying to grok Mercurial and hope I am just getting confused here!

I have a repository (\'main\') that I have cloned (\'clone\'), , both on my own machine. Both wer

3条回答
  •  忘了有多久
    2021-02-01 01:43

    It's warning you that your push would create new remote heads (and in this case branches). If you're okay with that, and it sounds like you are, you can push with push -f.

    This check is in there so that if you wanted that case1212 branch to not go back to the main server you could do hg push -r default and then you'd not see this warning and not send case1212.

    Once you've done this for case1212 you won't see the warning again since case1212 will already be there.

    Newer versions of mercurial make that warning a little less scary sounding in the case where the new head is a new branch.

提交回复
热议问题