Some fixes to deal with older templates that do not have a CVS repo.
On modify, create the repo, but add checks to make sure that we do not bother with operations on branches that do not exist cause they predate the repo creation. This allows you to move forward after a modifying an existing template. Also add checks for instantiating a old template that has no repo at all cause it has not been modified since adding the repo support. A few other fixes to make sure that instances are cleaned up after errors.
Showing with 56 additions and 26 deletions