How come I get an hg error indicating “new remote branches” might be created when I try to push?
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
- The game installed OK, but when I try to run the game I get an error that reads "General Protection Fault: History: Init_Engine" And then the launcher quits. Whats wrong?
- When I try to install Quilt Pro for Windows I get an error message indicating a problem with CTL3D.DLL. What is wrong?
- How come I get an hg error indicating "new remote branches" might be created when I try to push?