Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How come I get an hg error indicating “new remote branches” might be created when I try to push?

Error Hg indicating push Try
0
Posted

How come I get an hg error indicating “new remote branches” might be created when I try to push?

0

Here is an example: [linux]% hg push pushing to https://petsc.cs.iit.edu/petsc/petsc-dev searching for changes abort: push creates new remote branches! This is almost always an indication that you have done serious harm to your local repo. If you run hg heads and there are more than 1 (which causes this), then you know its true. Here is how it happens. You make some local changes, but do not commit. You pull down and it aborts part way because you have “uncommitted local changes”. However, you do not hg rollback. Instead you just hg commit, which creates another head. This is supposed to be a feature. I think it should have a user disable. Fixing this is complicated. Basically, you clone the repo before you made head #2, then create the diff for the bad changeset that made head #2. Apply it to the clone and checkin, then pull the master.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.