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:

  1. install hg-git
  2. create empty git repo somewhere
  3. go hg repo
  4. create bookmark called master, points head
  5. hg push (git repo)

basically, read hg-git page. it's there.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -