codereview: fix hang on standard hg commands

R=gri
CC=golang-dev
https://golang.org/cl/1950045
1 file changed