~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_info.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-17 00:32:27 UTC
  • mfrom: (4606.2.1 test-foreign)
  • Revision ID: pqm@pqm.ubuntu.com-20090817003227-g813yyjlq47j9qyb
(robertc) Prepare test_foreign for rich roots as the default format.
        (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
    def setUp(self):
39
39
        ExternalBase.setUp(self)
40
 
        self._repo_strings = "2a or development-subtree"
 
40
        self._repo_strings = (
 
41
            "1.6 or 1.6.1-rich-root "
 
42
            "or 1.9 or 1.9-rich-root "
 
43
            "or dirstate or dirstate-tags or "
 
44
            "pack-0.92 or rich-root or rich-root-pack")
41
45
 
42
46
    def test_info_non_existing(self):
43
47
        if sys.platform == "win32":
287
291
 
288
292
Format:
289
293
       control: Meta directory format 1
290
 
  working tree: Working tree format 6
 
294
  working tree: Working tree format 4
291
295
        branch: Branch format 4
292
296
    repository: Weave repository format 6
293
297
 
449
453
 
450
454
Format:
451
455
       control: Meta directory format 1
452
 
  working tree: Working tree format 6
 
456
  working tree: Working tree format 4
453
457
        branch: Branch format 4
454
458
    repository: Weave repository format 6
455
459
 
582
586
 
583
587
Format:
584
588
       control: Meta directory format 1
585
 
  working tree: Working tree format 6
 
589
  working tree: Working tree format 4
586
590
        branch: %s
587
591
    repository: %s
588
592
 
613
617
        # Out of date checkout
614
618
        out, err = self.run_bzr('info -v tree/checkout')
615
619
        self.assertEqualDiff(
616
 
"""Checkout (format: unnamed)
 
620
"""Checkout (format: dirstate)
617
621
Location:
618
622
       checkout root: tree/checkout
619
623
  checkout of branch: repo/branch
620
624
 
621
625
Format:
622
626
       control: Meta directory format 1
623
 
  working tree: Working tree format 6
 
627
  working tree: Working tree format 4
624
628
        branch: %s
625
629
    repository: %s
626
630
 
652
656
        tree3.add('b')
653
657
        out, err = self.run_bzr('info tree/checkout --verbose')
654
658
        self.assertEqualDiff(
655
 
"""Checkout (format: unnamed)
 
659
"""Checkout (format: dirstate)
656
660
Location:
657
661
       checkout root: tree/checkout
658
662
  checkout of branch: repo/branch
659
663
 
660
664
Format:
661
665
       control: Meta directory format 1
662
 
  working tree: Working tree format 6
 
666
  working tree: Working tree format 4
663
667
        branch: %s
664
668
    repository: %s
665
669
 
701
705
 
702
706
Format:
703
707
       control: Meta directory format 1
704
 
  working tree: Working tree format 6
 
708
  working tree: Working tree format 4
705
709
        branch: %s
706
710
    repository: %s
707
711
 
1127
1131
            (False, False): 'Checkout',
1128
1132
            }[(shared_repo is not None, light_checkout)]
1129
1133
        format = {True: self._repo_strings,
1130
 
                  False: 'unnamed'}[light_checkout]
 
1134
                  False: 'dirstate'}[light_checkout]
1131
1135
        if repo_locked:
1132
1136
            repo_locked = lco_tree.branch.repository.get_physical_lock_status()
1133
1137
        if repo_locked or branch_locked or tree_locked: