The latest issue of Computing in Science & Engineering has a paper by David Matthews, Steve Easterbrook, and myself titled "Configuration Management for Large-Scale Scientific Computing at the UK Met Office". It describes how the folks who do climate modeling in the UK built a configuration management tool on top of Trac to handle their million-line code base.