Rather than a script to do that, I suggest we write a bzr hook. It'd be good to just have a hook thats run after a commit (since you have to commit before generating a merge directive) and does syntax-check as well as running the test suite.
A pre-commit hook (if that thing exist in bazaar) makes more sense for this, isnt it? How's that sound to everyone? If you write a suitable python script to do that in bazaar please send it here and I will put it in prmgt/
