Posts tagged 'versions'

Extracting a Buildout versions.cfg from a Zope instance script

Today, I needed to migrate some legacy Plone installs set up using Buildout. If I were to simply move the buildout files and re-run buildout, I’d end up with the latest versions of add-on products - and since I’m using legacy versions of Plone 3, that’d almost certainly break the system.  I do know about the Buildout extension buildout.dumppickedversions (which does what its name suggests and exports picked versions of eggs) but I can’t re-run buildout to get this extension for risk of updating existing products (what I’m trying to avoid!).

The good news is …

Git and checkouts by date

Cheers to this very handy post for posting details from Nabble on how to check out a git branch based upon the date it was commited.  If I haven’t modified Wordpress to turn off the character replacement, then watch out because the double-quotes and double-dash will need to be checked before running the command:

git checkout `git rev-list -n 1 --before="2009-07-27 13:37" master`

A very easy way to flick back to a given revision.