Fixing stupid hg-repeat stuff