remote-hg: add more tests

Inspired by the tests in gitifyhg.

One test is failing, but that's because of a limitation of
remote-helpers.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
t: remote-hg: add file operation tests

Inspired by gitifyhg.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
t: remote-hg: trivial cleanups and fixes

There was a broken && chain, and cat is simpler than echo in a subshell.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
remote-hg: add support for hg v3.0

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
remote-hg,bzr: conform more to pep8

Reported-by: William Giokas <1007380@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>