~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_upgrade.py

  • Committer: Ian Clatworthy
  • Date: 2009-05-15 08:08:34 UTC
  • mto: (5575.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 5576.
  • Revision ID: ian.clatworthy@canonical.com-20090515080834-pwrp7kb9o4dtsrgq
support multiple urls, --pack and --dry-run

Show diffs side-by-side

added added

removed removed

Lines of Context:
444
444
 
445
445
    def test_upgrade_standalone_branch(self):
446
446
        control = self.make_standalone_branch()
447
 
        tried, worked, issues = smart_upgrade(control, format=self.to_format)
 
447
        tried, worked, issues = smart_upgrade([control], format=self.to_format)
448
448
        self.assertEqual(1, len(tried))
449
449
        self.assertEqual(1, len(worked))
450
450
        self.assertEqual(0, len(issues))
452
452
 
453
453
    def test_upgrade_standalone_branch_cleanup(self):
454
454
        control = self.make_standalone_branch()
455
 
        tried, worked, issues = smart_upgrade(control, format=self.to_format,
 
455
        tried, worked, issues = smart_upgrade([control], format=self.to_format,
456
456
            clean_up=True)
457
457
        self.assertEqual(1, len(tried))
458
458
        self.assertEqual(1, len(worked))
468
468
 
469
469
    def test_upgrade_repo_with_branches(self):
470
470
        control = self.make_repo_with_branches()
471
 
        tried, worked, issues = smart_upgrade(control, format=self.to_format)
 
471
        tried, worked, issues = smart_upgrade([control], format=self.to_format)
472
472
        self.assertEqual(3, len(tried))
473
473
        self.assertEqual(3, len(worked))
474
474
        self.assertEqual(0, len(issues))
478
478
 
479
479
    def test_upgrade_repo_with_branches_cleanup(self):
480
480
        control = self.make_repo_with_branches()
481
 
        tried, worked, issues = smart_upgrade(control, format=self.to_format,
 
481
        tried, worked, issues = smart_upgrade([control], format=self.to_format,
482
482
            clean_up=True)
483
483
        self.assertEqual(3, len(tried))
484
484
        self.assertEqual(3, len(worked))