Part of bzrlib
This looks in the version info format registry, and if the format cannot be found, generates a useful error exception.