~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/repository_implementations/test_repository.py

  • Committer: v.ladeuil+lp at free
  • Date: 2007-01-09 15:44:23 UTC
  • mfrom: (2227 +trunk)
  • mto: (2323.7.1 redirection)
  • mto: This revision was merged to the branch mainline in revision 2390.
  • Revision ID: v.ladeuil+lp@free.fr-20070109154423-lyvr5gmkwv6e0v6h
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
            old_format = bzrdir.BzrDirFormat.get_default_format()
274
274
            # This gives metadir branches something they can convert to.
275
275
            # it would be nice to have a 'latest' vs 'default' concept.
276
 
            bzrdir.BzrDirFormat.set_default_format(bzrdir.BzrDirMetaFormat1())
277
 
            try:
278
 
                upgrade(wt.basedir)
279
 
            finally:
280
 
                bzrdir.BzrDirFormat.set_default_format(old_format)
 
276
            format = bzrdir.format_registry.make_bzrdir('experimental-knit2')
 
277
            upgrade(wt.basedir, format=format)
281
278
        except errors.UpToDateFormat:
282
279
            # this is in the most current format already.
283
280
            return