/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/upgrade.py

  • Committer: Jelmer Vernooij
  • Date: 2009-03-28 15:23:21 UTC
  • mto: This revision was merged to the branch mainline in revision 4212.
  • Revision ID: jelmer@samba.org-20090328152321-nywo3pe3qraf6z1f
Fix upgrade if there is no local repository present.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
            # https://bugs.launchpad.net/bzr/+bug/253891
56
56
            pass
57
57
        if self.format is None:
58
 
            if self.bzrdir.find_repository()._format.rich_root_data:
 
58
            try:
 
59
                rich_root = self.bzrdir.find_repository()._format.rich_root_data
 
60
            except errors.NoRepositoryPresent:
 
61
                rich_root = False # assume no rich roots
 
62
            if rich_root:
59
63
                format_name = "default-rich-root"
60
64
            else:
61
65
                format_name = "default"