git-ized from hg