~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Aaron Bentley
  • Date: 2007-03-20 18:15:59 UTC
  • mto: This revision was merged to the branch mainline in revision 2528.
  • Revision ID: abentley@panoramicfeedback.com-20070320181559-gdtotm3er7a0zr0b
Add short format description

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
        branch1 = tree1.branch
51
51
        out, err = self.runbzr('info standalone')
52
52
        self.assertEqualDiff(
53
 
"""Standalone tree
 
53
"""Standalone tree (format: weave)
54
54
Location:
55
55
  branch root: %s
56
56
 
87
87
        branch2.set_push_location(branch1.bzrdir.root_transport.base)
88
88
        out, err = self.runbzr('info branch --verbose')
89
89
        self.assertEqualDiff(
90
 
"""Standalone tree
 
90
"""Standalone tree (format: weave)
91
91
Location:
92
92
  branch root: %s
93
93
 
142
142
        bound_tree = branch3.bzrdir.open_workingtree()
143
143
        out, err = self.runbzr('info bound')
144
144
        self.assertEqualDiff(
145
 
"""Checkout
 
145
"""Checkout (format: knit)
146
146
Location:
147
147
       checkout root: %s
148
148
  checkout of branch: %s
196
196
        branch4.bzrdir.open_workingtree().update()
197
197
        out, err = self.runbzr('info checkout --verbose')
198
198
        self.assertEqualDiff(
199
 
"""Checkout
 
199
"""Checkout (format: knit)
200
200
Location:
201
201
       checkout root: %s
202
202
  checkout of branch: %s
243
243
        branch5 = tree5.branch
244
244
        out, err = self.runbzr('info lightcheckout')
245
245
        self.assertEqualDiff(
246
 
"""Lightweight checkout
 
246
"""Lightweight checkout (format: dirstate / dirstate-tags)
247
247
Location:
248
248
 light checkout root: %s
249
249
  checkout of branch: %s
289
289
        # Out of date branched standalone branch will not be detected
290
290
        out, err = self.runbzr('info branch')
291
291
        self.assertEqualDiff(
292
 
"""Standalone tree
 
292
"""Standalone tree (format: weave)
293
293
Location:
294
294
  branch root: %s
295
295
 
332
332
        # Out of date bound branch
333
333
        out, err = self.runbzr('info bound')
334
334
        self.assertEqualDiff(
335
 
"""Checkout
 
335
"""Checkout (format: knit)
336
336
Location:
337
337
       checkout root: %s
338
338
  checkout of branch: %s
382
382
        # Out of date checkout
383
383
        out, err = self.runbzr('info checkout')
384
384
        self.assertEqualDiff(
385
 
"""Checkout
 
385
"""Checkout (format: knit)
386
386
Location:
387
387
       checkout root: %s
388
388
  checkout of branch: %s
428
428
        # Out of date lightweight checkout
429
429
        out, err = self.runbzr('info lightcheckout --verbose')
430
430
        self.assertEqualDiff(
431
 
"""Lightweight checkout
 
431
"""Lightweight checkout (format: dirstate / dirstate-tags)
432
432
Location:
433
433
 light checkout root: %s
434
434
  checkout of branch: %s
474
474
        repo = branch.repository
475
475
        out, err = self.runbzr('info branch')
476
476
        self.assertEqualDiff(
477
 
"""Standalone branch
 
477
"""Standalone branch (format: dirstate / knit)
478
478
Location:
479
479
  branch root: %s
480
480
 
504
504
        repo.set_make_working_trees(False)
505
505
        out, err = self.runbzr('info repo')
506
506
        self.assertEqualDiff(
507
 
"""Shared repository
 
507
"""Shared repository (format: dirstate / dirstate-tags / knit)
508
508
Location:
509
509
  shared repository: %s
510
510
 
526
526
            format=format)
527
527
        out, err = self.runbzr('info repo/branch')
528
528
        self.assertEqualDiff(
529
 
"""Repository branch
 
529
"""Repository branch (format: dirstate / knit)
530
530
Location:
531
531
  shared repository: %s
532
532
  repository branch: branch
570
570
        datestring_first = format_date(rev.timestamp, rev.timezone)
571
571
        out, err = self.runbzr('info tree/lightcheckout --verbose')
572
572
        self.assertEqualDiff(
573
 
"""Lightweight checkout
 
573
"""Lightweight checkout (format: dirstate / dirstate-tags)
574
574
Location:
575
575
 light checkout root: %s
576
576
   shared repository: %s
616
616
        # Out of date checkout
617
617
        out, err = self.runbzr('info tree/checkout')
618
618
        self.assertEqualDiff(
619
 
"""Checkout
 
619
"""Checkout (format: dirstate)
620
620
Location:
621
621
       checkout root: %s
622
622
  checkout of branch: %s
658
658
        tree3.add('b')
659
659
        out, err = self.runbzr('info tree/checkout --verbose')
660
660
        self.assertEqualDiff(
661
 
"""Checkout
 
661
"""Checkout (format: dirstate)
662
662
Location:
663
663
       checkout root: %s
664
664
  checkout of branch: %s
705
705
        datestring_last = format_date(rev.timestamp, rev.timezone)
706
706
        out, err = self.runbzr('info tree/lightcheckout --verbose')
707
707
        self.assertEqualDiff(
708
 
"""Lightweight checkout
 
708
"""Lightweight checkout (format: dirstate / dirstate-tags)
709
709
Location:
710
710
 light checkout root: %s
711
711
   shared repository: %s
753
753
        # Show info about shared branch
754
754
        out, err = self.runbzr('info repo/branch --verbose')
755
755
        self.assertEqualDiff(
756
 
"""Repository branch
 
756
"""Repository branch (format: dirstate / knit)
757
757
Location:
758
758
  shared repository: %s
759
759
  repository branch: branch
786
786
        # Show info about repository with revisions
787
787
        out, err = self.runbzr('info repo')
788
788
        self.assertEqualDiff(
789
 
"""Shared repository
 
789
"""Shared repository (format: dirstate / dirstate-tags / knit)
790
790
Location:
791
791
  shared repository: %s
792
792
 
814
814
        repo.set_make_working_trees(True)
815
815
        out, err = self.runbzr('info repo')
816
816
        self.assertEqualDiff(
817
 
"""Shared repository with trees
 
817
"""Shared repository with trees (format: dirstate / dirstate-tags / knit)
818
818
Location:
819
819
  shared repository: %s
820
820
 
841
841
        # Empty first branch
842
842
        out, err = self.runbzr('info repo/branch1 --verbose')
843
843
        self.assertEqualDiff(
844
 
"""Repository tree
 
844
"""Repository tree (format: knit)
845
845
Location:
846
846
    shared repository: %s
847
847
  repository checkout: branch1
884
884
        datestring_first = format_date(rev.timestamp, rev.timezone)
885
885
        out, err = self.runbzr('info repo/branch1')
886
886
        self.assertEqualDiff(
887
 
"""Repository tree
 
887
"""Repository tree (format: knit)
888
888
Location:
889
889
    shared repository: %s
890
890
  repository checkout: branch1
927
927
        # Out of date second branch
928
928
        out, err = self.runbzr('info repo/branch2 --verbose')
929
929
        self.assertEqualDiff(
930
 
"""Repository tree
 
930
"""Repository tree (format: knit)
931
931
Location:
932
932
    shared repository: %s
933
933
  repository checkout: branch2
973
973
        tree2.pull(branch1)
974
974
        out, err = self.runbzr('info repo/branch2')
975
975
        self.assertEqualDiff(
976
 
"""Repository tree
 
976
"""Repository tree (format: knit)
977
977
Location:
978
978
    shared repository: %s
979
979
  repository checkout: branch2
1020
1020
        # Show info about repository with revisions
1021
1021
        out, err = self.runbzr('info repo')
1022
1022
        self.assertEqualDiff(
1023
 
"""Shared repository with trees
 
1023
"""Shared repository with trees (format: dirstate / dirstate-tags / knit)
1024
1024
Location:
1025
1025
  shared repository: %s
1026
1026
 
1051
1051
        repo.set_make_working_trees(True)
1052
1052
        out, err = self.runbzr('info repo')
1053
1053
        self.assertEqualDiff(
1054
 
"""Shared repository with trees
 
1054
"""Shared repository with trees (format: dirstate / dirstate-tags / knit)
1055
1055
Location:
1056
1056
  shared repository: %s
1057
1057
 
1075
1075
        control.create_workingtree()
1076
1076
        out, err = self.runbzr('info repo')
1077
1077
        self.assertEqualDiff(
1078
 
"""Repository tree
 
1078
"""Repository tree (format: knit)
1079
1079
Location:
1080
1080
    shared repository: %s
1081
1081
  repository checkout: .
1141
1141
            (False, True): 'Lightweight checkout',
1142
1142
            (False, False): 'Checkout',
1143
1143
            }[(shared_repo is not None, light_checkout)]
 
1144
        format = {True: 'dirstate / dirstate-tags',
 
1145
                  False: 'dirstate'}[light_checkout]
1144
1146
        if repo_locked or branch_locked or tree_locked:
1145
1147
            def locked_message(a_bool):
1146
1148
                if a_bool:
1183
1185
            verbose_info = ''
1184
1186
            
1185
1187
        self.assertEqualDiff(
1186
 
"""%s
 
1188
"""%s (format: %s)
1187
1189
Location:
1188
1190
%s
1189
1191
%s
1210
1212
         0 revisions
1211
1213
         0 KiB
1212
1214
""" %  (description,
 
1215
        format,
1213
1216
        tree_data,
1214
1217
        branch_data,
1215
1218
        lco_tree._format.get_format_description(),
1335
1338
        # U U U
1336
1339
        out, err = self.runbzr('info branch')
1337
1340
        self.assertEqualDiff(
1338
 
"""Standalone tree
 
1341
"""Standalone tree (format: weave)
1339
1342
Location:
1340
1343
  branch root: %s
1341
1344
 
1369
1372
        tree.lock_write()
1370
1373
        out, err = self.runbzr('info branch')
1371
1374
        self.assertEqualDiff(
1372
 
"""Standalone tree
 
1375
"""Standalone tree (format: weave)
1373
1376
Location:
1374
1377
  branch root: %s
1375
1378