just to be clear, i have worked with both hg and git, and can get along with either, but i do prefer hg.
have also written several foss tools - for example csvfix.