prepush: add more precise error messages
Part of the patch is from timeless@mozdev.org
- indicate the branch name where there are multiple heads
- give better advice when hitting a possible race, where new heads are added
between discovery and the call to branchmap(). In that case, asking the user
to merge isn't helpful, since only remote has the changes.
inserv1
% inserve
adding a
adding b
adding c
adding d
adding e
adding f
adding hg.pid
M c
A g
A h
R a
R e
! b
Are we able to kill the service? if not, the service died on some error