cosmin / git-hg

A git-hg utility for checking out and tracking a mercurial repo.
http://offbytwo.github.com/git-hg
MIT License
307 stars 51 forks source link

Push #11

Closed jackowayed closed 13 years ago

jackowayed commented 13 years ago

Push support seems to exist (ish, at least), but how to do it is undocumented.

I cloned a repo (that I have read-write access to), did a git commit, and ran

$ g push hg                                                                                                                                                                                                        
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 350 bytes, done.
Total 3 (delta 1), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
To .git/hgremote
   a823202..2cc8f3b  HEAD -> master

Which looks like it worked. But then I cloned the hg repo again and it didn't have the changes. And I thought it might be because I pushed to master instead of default, so I tried: $ g push hg default error: src refspec default does not match any. error: failed to push some refs to '.git/hgremote' And I even cd-ed into the remote repo and saw if the master branch was there:

$ hg branches
default                        0:d11029113863
cosmin commented 13 years ago

you are right, there is no push support back to hg at the moment. That's a bit trickier to implement than I have the time for.