codereview: more mercurial interface fixes         Fixes issue 4131.
codereview: more mercurial interface fixes
        Fixes issue 4131.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6614061

wesolows/golang,wesolows/golang-old,firebitsbr/golang-old,firebitsbr/golang-old,firebitsbr/golang-old,wesolows/golang,wesolows/golang,firebitsbr/golang-old,wesolows/golang-old,wesolows/golang,wesolows/golang-old,wesolows/golang-old,wesolows/golang,wesolows/golang-old,wesolows/golang,wesolows/golang-old,firebitsbr/golang-old,firebitsbr/golang-old,firebitsbr/golang-old,wesolows/golang,firebitsbr/golang-old,wesolows/golang-old