push: fix subtle bug in prepush logic
A test case demonstrating the bug has been added.
Contributed by Henrik Stuart and Sune Foldager.
#!/bin/shhg init aecho a > a/ahg --cwd a ci -A -m ahg clone a becho b > b/bhg --cwd b ci -A -m bchmod 100 a/.hg/storehg --cwd b push ../achmod 700 a/.hg/store