fix typo in max_retries
bug 943212, update hg to 2.8, rs=me