I'm trying to get the hg-git extension working under Windows and after hours of fiddling, I finally seem to have it working. However, nothing shows up in my git repository even though the output of hg push reads:
importing Hg objects into Git
creating and sending data
github::refs/heads/master => GIT:8d946209
[command completed successfully Wed Oct 20 15:26:47 2010]
I had chosen to 'Initialize this repository with a README'. This meant I ended up with two heads, which I couldn't
hg merge
because one had a bookmark.To get pushing working, I had to:
hg heads
),This ended up with commands as follows (substituting in
<x>
sections)make sure you pick the remote revision for the merge above - if you don't it doesn't work!
Try issuing the command
hg bookmark -f master
(use
-f
to force an existing bookmark to move)Then try pushing again.
This works because Hg-Git pushes your bookmarks up to the Git server as branches and will pull Git branches down and set them up as bookmarks. (from the official README.md)
And it seems that just after I asked this, I made a trivial change. This was picked up and pushed. So it seems that you have to wait until you've made a new commit in order for hg-git to pick it up.