Elegant fix for quadratic mercurial changegroup application | Hacker News Reader