Thanks everyone at GUADEC for the sweet thoughts. Miss you all. Hope I’ll see you next year 🙂
Month: July 2012
hit by a car
I was hit by a car on my cycle to work on Tuesday morning. Broke my collarbone, requiring surgery to repair. I’m okay. Have a couple of weeks off work. Full write up on my other blog (warning: contains details maybe not for the squeamish).
importing from hg to git
Had to import a repository from Mercurial to Git today.
I used fast-export:
git clone git://repo.or.cz/fast-export.git
Because the author fields were an utter mess, I needed to create an authors map. This is not well documented but it’s of the form email address to author <email>. For example:
Administrator@MACHINE.localdomain=Bob McBadgers <bob@badgers.st> badgerbob@gmail.com=Bob McBadgers <bob@badgers.st> badgerbob@MyMachine=Bob McBadgers <bob@badgers.st>
You then create a new git repo, e.g.
mkdir myapp.git ; cd myapp.git git init --bare --shared=group ../fast-export/hg-fast-export.sh -A ../authors.map -r ../myapp.hg/
If it produces an empty repo, ensure you have the Mercurial Python modules available.
end of holidays, now for something new
Just got back from a pretty amazing two week holiday visiting my best friend Steph in Beijing (read about it here).
Tomorrow I start my new job as a Senior IT Officer at the Bureau of Meteorology. I will be working on a foreign aid project to produce climate forecasting software for pacific nations. This should be exciting work with lots of Linux and open source.
I’m a little bit nervous, I haven’t worked in an office for almost four years. Spent some time this weekend shopping for new work clothes and appropriate shoes. Apparently civil servants don’t wear jeans and kicks to work.