~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-18 23:27:40 UTC
  • mfrom: (4599.4.45 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090818232740-8q7ms2nntw9ckyvq
(robertc) Change the default format to 2a. (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 = (
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")
 
40
        self._repo_strings = "2a or development-subtree"
45
41
 
46
42
    def test_info_non_existing(self):
47
43
        if sys.platform == "win32":
291
287
 
292
288
Format:
293
289
       control: Meta directory format 1
294
 
  working tree: Working tree format 4
 
290
  working tree: Working tree format 6
295
291
        branch: Branch format 4
296
292
    repository: Weave repository format 6
297
293
 
453
449
 
454
450
Format:
455
451
       control: Meta directory format 1
456
 
  working tree: Working tree format 4
 
452
  working tree: Working tree format 6
457
453
        branch: Branch format 4
458
454
    repository: Weave repository format 6
459
455
 
586
582
 
587
583
Format:
588
584
       control: Meta directory format 1
589
 
  working tree: Working tree format 4
 
585
  working tree: Working tree format 6
590
586
        branch: %s
591
587
    repository: %s
592
588
 
617
613
        # Out of date checkout
618
614
        out, err = self.run_bzr('info -v tree/checkout')
619
615
        self.assertEqualDiff(
620
 
"""Checkout (format: dirstate)
 
616
"""Checkout (format: unnamed)
621
617
Location:
622
618
       checkout root: tree/checkout
623
619
  checkout of branch: repo/branch
624
620
 
625
621
Format:
626
622
       control: Meta directory format 1
627
 
  working tree: Working tree format 4
 
623
  working tree: Working tree format 6
628
624
        branch: %s
629
625
    repository: %s
630
626
 
656
652
        tree3.add('b')
657
653
        out, err = self.run_bzr('info tree/checkout --verbose')
658
654
        self.assertEqualDiff(
659
 
"""Checkout (format: dirstate)
 
655
"""Checkout (format: unnamed)
660
656
Location:
661
657
       checkout root: tree/checkout
662
658
  checkout of branch: repo/branch
663
659
 
664
660
Format:
665
661
       control: Meta directory format 1
666
 
  working tree: Working tree format 4
 
662
  working tree: Working tree format 6
667
663
        branch: %s
668
664
    repository: %s
669
665
 
705
701
 
706
702
Format:
707
703
       control: Meta directory format 1
708
 
  working tree: Working tree format 4
 
704
  working tree: Working tree format 6
709
705
        branch: %s
710
706
    repository: %s
711
707
 
1131
1127
            (False, False): 'Checkout',
1132
1128
            }[(shared_repo is not None, light_checkout)]
1133
1129
        format = {True: self._repo_strings,
1134
 
                  False: 'dirstate'}[light_checkout]
 
1130
                  False: 'unnamed'}[light_checkout]
1135
1131
        if repo_locked:
1136
1132
            repo_locked = lco_tree.branch.repository.get_physical_lock_status()
1137
1133
        if repo_locked or branch_locked or tree_locked: