test: simplify testgitifyhg hack

Move it to the 'test' directory so it's clear what's its purpose, and
rename it so the tests use less hacky URLs.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
test: fix user.name configuration

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Fix Git body

Commits messages in Git end with a newline.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Use Git information for tags

Ported from git-remote-hg.

Fixes #77.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Fix order of file operations

Ported from git-remote-hg.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Fix for temporary remotes

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Allow non-fast-forward updates

If revisions are stripped fast-import complains about the new branch not
being a descendant of the old one.

Ported from git-remote-hg. Now gitifyhg passes the 'strip' test of
git-remote-hg.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
test: fix broken && chain

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
test: simplify helpers

No functional changes.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
test: simplify hg user config

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
test: fix file quotes

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>