localrepo: refactor prepush logic
Simplifies the prepush check logic and makes it a lot more direct and
comprehensible. Instead of comparing the total local vs. remote head count, it
compares the number of new vs. removed heads.
adding baradding foo% state dump aftern 666 -1 barn 666 -1 foo% status! bar? bazC foo