mercurial - how to convert an hg repo to a git repo on os x -
yes, know hg-fast-export.sh which people hate
even when managed find mercurial module, still doesn't work on repo:
$ $home/notes/fast-export/hg-fast-export.sh -r $home/path-to-repo error: repository has @ least 1 unnamed head: hg r194 git-fast-import statistics: . . .
producing nothing in target git repo.
i tried hg-to-git in git repo:
$home/desktop/tmp/git-master/contrib/hg-to-git/hg-to-git.py -v . tip 1197 analysing branches... traceback (most recent call last): file "/users/dsw/desktop/tmp/git-master/contrib/hg-to-git/hg-to-git.py", line 135, in <module> hgchildren[parent] += ( str(cset), ) keyerror: '-1'
maybe hg-to-git trying tell me same thing hg-fast-export telling me, in more visceral , gestalt way. somehow think tool should keep going in face of odd situation , produce @ least partial result, if informs user of problem.
does have suggestions?
i've never wanted this, believe easiest way is:
- install hg-git
- create empty git repo somewhere
- go hg repo
- create bookmark called master, points head
- hg push (git repo)
basically, read hg-git page. it's there.
Comments
Post a Comment