test: improve committer config

This is the way it's done in git.git.

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>
Track the 'default' branch

We want to have both 'branches/default' and 'master'.

It makes the code more straight-forward.

The reason make_gitify_ref() needs to return bookmarks/master is because
that's what we told 'git fast-import' we would use for refs/heads/master
through the refspec.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Allow tags to be overridden

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Port git-remote-hg author sanitizer

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