Hacker News new | past | comments | ask | show | jobs | submit login

Regarding the hg-git performance issues, I've been having them for a long time until I discovered somewhere a tip: every now and then run "git repack -a -d" on the git repo created by hg-git. It doesn't make it as fast as raw git but it makes a noticeable difference, from more than a minute to pull/push down to few seconds (that's with large repos with tens of thousands of commits).

Another issue I had been bitten by hg-git in the past is overwriting other people's commits when I push, as if it was running --force. Maybe that was a bug that had been fixed since but to be on the safe side I've been using an ugly workaround: have an intermediate local bare git repo where I pull from/push to and have it talk to the upstream git repo.




Aha, thanks for the tip! I'm no longer using hg-git, but i will try to remember this in case i ever do again.

I don't think i ever overwrote anyone else's commits, but i did push a load of deleted bookmarks. This was particularly annoying, because the repository in question was our Puppet code, in which all the branches are automatically checked out on the puppetmaster. Resurrecting 20 dead branches is a great way to eat a load of disk space. The bug is still open:

https://bitbucket.org/durin42/hg-git/issue/107/hg-git-pushes...




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: