2
1
I've Vim plugin project on GoogleCode using Mercurial, but users wants to have it on github to ease use it as git subrepo (to keep their ~/.vim/ on github with all plugins inside).
Personally I prefer googlecode and hg over github and git, so I don't like to move my project to github, and prefer to implement sort of automatic git mirror for my hg repo. I've read these: Hg-Git mercurial plugin, Synchronizing a git mirror with hg-git and Create a Git Mirror and looks like with some extra headache this may work by using two commands in place of one:
hg push
hg push githubmirror
But, thing is, you know, most of us will forget to run second hg push
from time to time. So, is it possible to automate this in some way (using hooks etc.)?
Another question - is there better way to make such mirrors? Maybe GoogleCode already provide git access to their hg repos? Or maybe it's possible to create git clone for hg repo and keep it in sync with original hg repo automatically by 3rd-party, without even notifying hg repo owner?
create a script with both, save it and run it when you need to sync? – Journeyman Geek – 2012-01-28T12:30:22.760
I've a lot of repos, and having to run custom script for some of them in no way better than having to run second
hg push
: it's change my workflow and thus will result in errors. – Powerman – 2012-01-28T12:40:32.680