We hear from a number of people who are using Mercurial for their projects but want to host them on GitHub because they want their project to benefit from the community here. Or perhaps they are in a group where some of the developers want to use Mercurial and others want to use Git and so they just stick with Subversion (ugh). We don’t want to live in a world where developers who are ready to switch to a DVCS end up staying with Subversion.
So, I’ve been working on a plugin for Mercurial that lets it communicate with a Git server as a native Git client. I give you hg-git!

This means that if you are a Mercurial developer you can install this plugin and then push and pull to and from Git servers, either GitHub or somewhere else. It is a lossless bi-directional bridge, meaning you can push to a Git server from one Hg user, then another Hg user can clone using this plugin and the node ids will all be identical. It can even handle things like tags, explicit renames, named branches, octopus merges and more.
The plugin is pretty far along at this point – I’ve been using it for all the hg-git development and I’ve heard from a number of others who are using it successfully even on relatively large projects. It is slow sometimes and may not handle some edge cases well, but the software is rapidly maturing. If you do use it, please let me know about any issues you run into, we want to make this rock solid.
There are no external dependencies – the library is entirely written in python and contains a pure python implementation of all the Git functionality it needs, so you don’t need to have Git installed locally at all. It has been known to work with Mercurial 1.1 and 1.2 – let me know if you try it with something else.
Usage
From Hg with the plugin installed, you can clone a Git repository like this:
$ hg clone git://github.com/schacon/munger.gitOr, if you have an existing Hg repository, you can run something like this:
$ cd myproject # (an Hg repository) $ hg gremote add origin git(at)github.com:schacon/myproject.git $ hg gpushWith those two commands you can basically import your Hg repository into a GitHub repository. Then people can fork and work on your code in Hg or in Git and push back up, then you can pull in any contributed work with something like this:
$ hg gremote add scott git://github.com/scott/project.git $ hg gfetch scott $ hg updateThe basic commands the plugin adds to the Hg command library are ‘gclone’, ‘gremote’, ‘gpush’ and ‘gfetch’ – all roughly equivalent to their Git counterparts. Also, running a normal ‘hg clone’ with an identifiable Git protocol (git://, git+ssh://) will fire up ‘gclone’ automatically.
See the hg-git homepage for more information.


Cool! But what about the other direction? I'm a git user, but I'd like to be able to benefit from projects hosted in Mercurial.
@kballard This is a plugin for
hg. What you're talking about sounds more likely to be a plugin forgit.So does that mean that we can use TortoiseHg with Git, now?
@spicyj i think tortoise hg needs to know about the gpush and gpull commands first.
rockem' sockem' awesome
Some of my favorite projects use Mercurial (webmachine, RabbitMQ). I hope this will encourage them to join the party over here (sorry, bitbucket is not half as cool).
what is next bzr ? :)
i see there is an git import tool for launchpad
@kballard: this is a two-way bridge. By definition, this means that you can now use Git to work on Mercurial projects -- and push to Bitbucket. No need for Github any more :-)
technically, you can use this to use Git to collaborate on Hg hosted projects - there are 'gimport' and 'gexport' commands that will just do the object translations - but it's a bit more convoluted. i'll try to write up a guide on how to do that at some point after this is all settled down.
I tried to convert an old project I had in hg to git with mercurial 0.9.5 (like I said, old project :)) and this didn't work, updated to the newest stable (1.2.1) and all was well.
Oh, and thanks Scott, saved me the hassle of (among other things) going back to this project occasionally and always accidentally typing 'git st' :)
Quite awesome indeed.
This is excellent!! Thanks a lot.
sweet how about a tcp acute code
This is great. I have been using git on Linux at work and loving it flower. But I am mixed Mac and Windows at home and git on windows has not been cutting it. Having the hg option will be really nice.
This is great. I have been using git on Linux at work and loving it web hosting. But I am mixed Mac and Windows at home and git on windows has not been cutting it. Having the hg option will be really nice.
A agree its very nice откровения члена элитной семьи
it's a bit more convoluted. i'll try to write up a guide on how to do that at some point after this is all settled down.Dissertation | Essay | Research Paper
By definition, this means that you can now use Git to work on Mercurial projects -- and push to Bitbucket. No need for Github any more :-)
Term Paper | Thesis
I use Mercurial for a lot of my latest projects.
Lenovo Computers
It's a two way bridge?! It's means that you can now use Git to work on Mercurial projects and push to another?
Thanks,
Andreas
http://www.seoprom.de
Schacon,
That's a very clever name. can you have two or more clients writing or modifying the same project at the same time. Or is it staggered and being revision controlled?
bluehost | bluehost review
Servers often run for some time without interruption and availability must often be very high, making hardware reliability and durability extremely important. Although servers can be built from commodity computer parts web hosting, mission-critical servers use specialized hardware with low failure rates in order to maximize uptime. For example, servers may incorporate faster, higher-capacity hard drives, larger computer fans or water cooling to help remove heat, and uninterruptible power supplies that ensure the servers continue to function in the event of a power failure. These components offer higher performance and reliability at a correspondingly higher price. Hardware redundancy—installing more than one instance of modules such as power supplies dedicated hosting and hard disks arranged so that if one fails another is automatically available—is widely used. ECC memory devices which detect and correct errors are used; non-ECC memory can cause data corruption.Hardware requirements for servers vary, depending on the server application. Absolute CPU speed is not usually as critical to a server as it is to a desktop machine. Servers' duties to provide service to many users over a network lead to different requirements like fast credit card processing network connections and high I/O throughput. Because servers are usually accessed over a network they may run in headless mode without a monitor or input device. Processes which are not needed for the server's function are not used. Many servers do not have a graphical user interface (GUI) as it is unnecessary and consumes resources that could be allocated elsewhere. Similarly internet phone service, audio and USB interfaces may be omitted.
This in particular makes me very happy. I remember when GitHub's founders would bitch in every single thread about Mercurial that Bitbucket's leach of a developer deserved to rot in hell for ripping off their entirely-original UI wholesale. It was a tremendous turnoff for me, both to GitHub and to Git. This demonstrates a vastly higher level of maturity. My congratulations to the GitHub team for growing up. Keep it up and I'd consider using your product.
movie download links
I must admit, all these tips and instructions are very helpful for users. Thanks.
Web design
There are on the Internet so many sides nobody needs.
But this side is really interesting.
Many thanks for the share of the information.
Thanks,
Andreas
Suchmaschineneintrag
Sprachkurse
Linkaufbau
Pressebericht
Linkpopularität
Webdesign
Homepage erstellen
Internetauftritt
Big Thanks that we can post links here!
Thanks,
Andreas
Sprachkurs
Logodesign
Firmenlogo
Suchmaschinenoptimierung
PageRank erhöhen
Mehr Traffic
Official Ed Hardy Store for all Clothing and Gear by Christian Audigier. The lifestyle brand is inspired by vintage tattoo art incorporating apparel Ed Hardy Clothing | Ed Hardy Hoodies | ED Hardy Long Sleeve
Runs out of memory both exporting and pushing the Mozilla Firefox repo.
The newest stable 1.2.1 has worked perfect for all my projects! I absolutely love it.
colon cleanse
cheap sale christian louboutin shoes
colon cleanse
But what about the other direction? I'm a git user, but I'd like to be able to benefit from projects hosted in Mercurial.
club penguin cheats
I think the other direction would be great for some people, but definitely not all!
acai berry
There are on the Internet so many sides nobody needs.
But this side is really interesting.
Many thanks for the share of the information.
Thanks,
Andreas
werbeartikel II werbegeschenke II online shops II logos erstellen
Recently I too use Mercurial very often, It is a plug-in that was necessary for me.
Russian girls
Thanks
Very helpful, thanks for taking time to do this. Now we can move past subversion and not have to be limited so much in what we're trying to do. condoms
There are on the Internet so many sides nobody needs.
But this side is really interesting.
Many thanks for the share of the information.
Thanks,
Andreas
Wandtattoo II Möbel II Jugendzimmer II Modelle Hamburg II Linkaufbau
Thank you for the plugin! I can finally move on from Subversion.
Home security consultant
Is there any updates for this. What is the latest version on this.
ancient mexico barbie :: interpretazione sogni
Woah. That's an extremely efficient setup.
Free mmorpg - MMORPG Games List - Game music soundtracks
Really useful piece of software here and one that I use for my Webmaster Software site which has helped my life considerably so thanks!
Please keep in mind that this is beta software right now - please don't use it for super important stuff quite yet. I'm maintaining the plugin in Hg and pushing to and pulling from GitHub, but the Hg->Git->Hg conversions are not always lossless yet. A couple days/weeks and the mappings should be a bit more stabilized. If you do try it out and you run into a problem, please do file an issue on GitHub.
london escort agency |Escorts London
The Hg with the plugin installed, you can clone a Git,
Apple iPod World, Apple iPod
Some great stuff - a word of warning though - Meredith
Whitney Advisory Group herself mentioned today that Goldman Sachs' stock price has been downgraded following her comments around the stock and its value. Sachs however are to release their own third quarter profits this coming Thursday so we shall just have to wait market expectations.
Great plugin, very useful.
Best Joint Supplements
Great plugin guys!
gifts 4 christmas
Super Hg-Git Mercurial plugin! Easy to install and use - thanks!
Russian Girls | Oriflame | Russian Date
Good point made.
Apple iPods
apple ipod nano
Apple Store
apple touch
Natural viagra alternative
Best site)! Senk's!
Buy Herbal viagra online
Very nice site, helpful articles - good job, thanks
Money Keywords
Thanks for sharing. get pregnant fast
Thanks for sharing. get pregnant fast
Very interesting read! Some very good points mentioned, thanks.
Website Design Kent | Car Bulbs | Sandgate Hotels
Try this: Premature Ejaculation Pills Great site about enlarge Penis !
Thanks for the useful plugin, and a great tutorial. I found it's easy to follow. Socialbookmark
That is very interesting thank you.
best anti wrinkle cream
mama lotion
Good job done.
Thanks!
work from home
thnx for Mercurial
vigrx plus
this is awesome. A very useful plugin. Thanks for all of your hard work my friend.
http://www.edhardyworld.co.uk/
Great post, i really appreciate it.
Belford university law suit | Case against Belford university