/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Aaron Bentley
  • Date: 2007-07-06 18:30:50 UTC
  • mto: (1551.19.24 Aaron's mergeable stuff)
  • mto: This revision was merged to the branch mainline in revision 2600.
  • Revision ID: abentley@panoramicfeedback.com-20070706183050-2folzf1brc3syc3a
Make info provide more related brances, and format all branches nicely

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Tests for the info command of bzr."""
19
19
 
 
20
import os
20
21
import sys
21
22
 
22
23
import bzrlib
23
24
from bzrlib import (
24
25
    bzrdir,
 
26
    osutils,
25
27
    repository,
 
28
    urlutils,
26
29
    )
27
30
from bzrlib.osutils import format_date
28
31
from bzrlib.tests import TestSkipped
53
56
        self.assertEqualDiff(
54
57
"""Standalone tree (format: weave)
55
58
Location:
56
 
  branch root: %s
57
 
""" % branch1.bzrdir.root_transport.base, out)
 
59
  branch root: standalone
 
60
""", out)
58
61
        self.assertEqual('', err)
59
62
 
60
63
        out, err = self.run_bzr('info standalone -v')
61
64
        self.assertEqualDiff(
62
65
"""Standalone tree (format: weave)
63
66
Location:
64
 
  branch root: %s
 
67
  branch root: standalone
65
68
 
66
69
Format:
67
70
       control: All-in-one format 6
86
89
Repository:
87
90
         0 revisions
88
91
         0 KiB
89
 
""" % branch1.bzrdir.root_transport.base, out)
 
92
""", out)
90
93
        self.assertEqual('', err)
91
94
        tree1.commit('commit one')
92
95
        rev = branch1.repository.get_revision(branch1.revision_history()[0])
100
103
        self.assertEqualDiff(
101
104
"""Standalone tree (format: weave)
102
105
Location:
103
 
  branch root: %s
 
106
  branch root: branch
104
107
 
105
108
Related branches:
106
 
      parent branch: %s
107
 
  publish to branch: %s
108
 
""" % (branch2.bzrdir.root_transport.base,
109
 
       branch1.bzrdir.root_transport.base,
110
 
       branch1.bzrdir.root_transport.base), out)
 
109
    push branch: standalone
 
110
  parent branch: standalone
 
111
""", out)
111
112
        self.assertEqual('', err)
112
113
 
113
114
        out, err = self.run_bzr('info branch --verbose')
114
115
        self.assertEqualDiff(
115
116
"""Standalone tree (format: weave)
116
117
Location:
117
 
  branch root: %s
 
118
  branch root: branch
118
119
 
119
120
Related branches:
120
 
      parent branch: %s
121
 
  publish to branch: %s
 
121
    push branch: standalone
 
122
  parent branch: standalone
122
123
 
123
124
Format:
124
125
       control: All-in-one format 6
146
147
Repository:
147
148
         1 revision
148
149
         %d KiB
149
 
""" % (branch2.bzrdir.root_transport.base,
150
 
       branch1.bzrdir.root_transport.base,
151
 
       branch1.bzrdir.root_transport.base,
152
 
       datestring_first, datestring_first,
 
150
""" % (datestring_first, datestring_first,
153
151
       # poking at _revision_store isn't all that clean, but neither is
154
152
       # having the ui test dependent on the exact overhead of a given store.
155
153
       branch2.repository._revision_store.total_size(
169
167
        self.assertEqualDiff(
170
168
"""Checkout (format: knit)
171
169
Location:
172
 
       checkout root: %s
173
 
  checkout of branch: %s
 
170
       checkout root: bound
 
171
  checkout of branch: standalone
174
172
 
175
173
Related branches:
176
 
  parent branch: %s
 
174
  parent branch: standalone
177
175
 
178
176
Format:
179
177
       control: Meta directory format 1
201
199
Repository:
202
200
         1 revision
203
201
         %d KiB
204
 
""" % (branch3.bzrdir.root_transport.base,
205
 
       branch1.bzrdir.root_transport.base,
206
 
       branch1.bzrdir.root_transport.base,
207
 
       bound_tree._format.get_format_description(),      
 
202
""" % (bound_tree._format.get_format_description(),
208
203
       branch3._format.get_format_description(),
209
204
       branch3.repository._format.get_format_description(),
210
205
       datestring_first, datestring_first,
224
219
        self.assertEqualDiff(
225
220
"""Checkout (format: knit)
226
221
Location:
227
 
       checkout root: %s
228
 
  checkout of branch: %s
 
222
       checkout root: checkout
 
223
  checkout of branch: standalone
229
224
 
230
225
Format:
231
226
       control: Meta directory format 1
253
248
Repository:
254
249
         1 revision
255
250
         %d KiB
256
 
""" % (branch4.bzrdir.root_transport.base,
257
 
       branch1.bzrdir.root_transport.base,
258
 
       branch4.repository._format.get_format_description(),
 
251
""" % (branch4.repository._format.get_format_description(),
259
252
       datestring_first, datestring_first,
260
253
       # poking at _revision_store isn't all that clean, but neither is
261
254
       # having the ui test dependent on the exact overhead of a given store.
271
264
        self.assertEqualDiff(
272
265
"""Lightweight checkout (format: dirstate or dirstate-tags)
273
266
Location:
274
 
  light checkout root: %s
275
 
   checkout of branch: %s
 
267
  light checkout root: lightcheckout
 
268
   checkout of branch: standalone
276
269
 
277
270
Format:
278
271
       control: Meta directory format 1
300
293
Repository:
301
294
         1 revision
302
295
         0 KiB
303
 
""" % (tree5.bzrdir.root_transport.base,
304
 
       branch1.bzrdir.root_transport.base,
305
 
       datestring_first, datestring_first,
306
 
       ), out)
 
296
""" % (datestring_first, datestring_first,), out)
307
297
        self.assertEqual('', err)
308
298
 
309
299
        # Update initial standalone branch
318
308
        self.assertEqualDiff(
319
309
"""Standalone tree (format: weave)
320
310
Location:
321
 
  branch root: %s
 
311
  branch root: branch
322
312
 
323
313
Related branches:
324
 
      parent branch: %s
325
 
  publish to branch: %s
 
314
    push branch: standalone
 
315
  parent branch: standalone
326
316
 
327
317
Format:
328
318
       control: All-in-one format 6
350
340
Repository:
351
341
         1 revision
352
342
         0 KiB
353
 
""" % (branch2.bzrdir.root_transport.base,
354
 
       branch1.bzrdir.root_transport.base,
355
 
       branch1.bzrdir.root_transport.base,
356
 
       datestring_first, datestring_first,
 
343
""" % (datestring_first, datestring_first,
357
344
       ), out)
358
345
        self.assertEqual('', err)
359
346
 
362
349
        self.assertEqualDiff(
363
350
"""Checkout (format: knit)
364
351
Location:
365
 
       checkout root: %s
366
 
  checkout of branch: %s
 
352
       checkout root: bound
 
353
  checkout of branch: standalone
367
354
 
368
355
Related branches:
369
 
  parent branch: %s
 
356
  parent branch: standalone
370
357
 
371
358
Format:
372
359
       control: Meta directory format 1
396
383
Repository:
397
384
         1 revision
398
385
         %d KiB
399
 
""" % (branch3.bzrdir.root_transport.base,
400
 
       branch1.bzrdir.root_transport.base,
401
 
       branch1.bzrdir.root_transport.base,
402
 
       branch3.repository._format.get_format_description(),
 
386
""" % (branch3.repository._format.get_format_description(),
403
387
       datestring_first, datestring_first,
404
388
       # poking at _revision_store isn't all that clean, but neither is
405
389
       # having the ui test dependent on the exact overhead of a given store.
413
397
        self.assertEqualDiff(
414
398
"""Checkout (format: knit)
415
399
Location:
416
 
       checkout root: %s
417
 
  checkout of branch: %s
 
400
       checkout root: checkout
 
401
  checkout of branch: standalone
418
402
 
419
403
Format:
420
404
       control: Meta directory format 1
444
428
Repository:
445
429
         1 revision
446
430
         %d KiB
447
 
""" % (branch4.bzrdir.root_transport.base,
448
 
       branch1.bzrdir.root_transport.base,
449
 
       branch4.repository._format.get_format_description(),
 
431
""" % (branch4.repository._format.get_format_description(),
450
432
       datestring_first, datestring_first,
451
433
       # poking at _revision_store isn't all that clean, but neither is
452
434
       # having the ui test dependent on the exact overhead of a given store.
460
442
        self.assertEqualDiff(
461
443
"""Lightweight checkout (format: dirstate or dirstate-tags)
462
444
Location:
463
 
  light checkout root: %s
464
 
   checkout of branch: %s
 
445
  light checkout root: lightcheckout
 
446
   checkout of branch: standalone
465
447
 
466
448
Format:
467
449
       control: Meta directory format 1
491
473
Repository:
492
474
         2 revisions
493
475
         0 KiB
494
 
""" % (tree5.bzrdir.root_transport.base,
495
 
       branch1.bzrdir.root_transport.base,
496
 
       datestring_first, datestring_last,
497
 
       ), out)
 
476
""" % (datestring_first, datestring_last,), out)
498
477
        self.assertEqual('', err)
499
478
 
500
479
    def test_info_standalone_no_tree(self):
506
485
        self.assertEqualDiff(
507
486
"""Standalone branch (format: dirstate or knit)
508
487
Location:
509
 
  branch root: %s
 
488
  branch root: branch
510
489
 
511
490
Format:
512
491
       control: Meta directory format 1
520
499
Repository:
521
500
         0 revisions
522
501
         0 KiB
523
 
""" % (branch.bzrdir.root_transport.base,
524
 
       format.get_branch_format().get_format_description(),
 
502
""" % (format.get_branch_format().get_format_description(),
525
503
       format.repository_format.get_format_description(),
526
504
       ), out)
527
505
        self.assertEqual('', err)
546
524
Repository:
547
525
         0 revisions
548
526
         0 KiB
549
 
""" % (repo.bzrdir.root_transport.base,
550
 
       format.repository_format.get_format_description(),
 
527
""" % ('repo', format.repository_format.get_format_description(),
551
528
       ), out)
552
529
        self.assertEqual('', err)
553
530
 
559
536
        self.assertEqualDiff(
560
537
"""Repository branch (format: dirstate or knit)
561
538
Location:
562
 
  shared repository: %s
563
 
  repository branch: branch
 
539
  shared repository: repo
 
540
  repository branch: repo/branch
564
541
 
565
542
Format:
566
543
       control: Meta directory format 1
574
551
Repository:
575
552
         0 revisions
576
553
         0 KiB
577
 
""" % (repo.bzrdir.root_transport.base,
578
 
       format.get_branch_format().get_format_description(),
 
554
""" % (format.get_branch_format().get_format_description(),
579
555
       format.repository_format.get_format_description(),
580
556
       ), out)
581
557
        self.assertEqual('', err)
604
580
        self.assertEqualDiff(
605
581
"""Lightweight checkout (format: dirstate or dirstate-tags)
606
582
Location:
607
 
  light checkout root: %s
608
 
   checkout of branch: %s
609
 
    shared repository: %s
 
583
  light checkout root: tree/lightcheckout
 
584
   checkout of branch: repo/branch
 
585
    shared repository: repo
610
586
 
611
587
Format:
612
588
       control: Meta directory format 1
634
610
Repository:
635
611
         1 revision
636
612
         %d KiB
637
 
""" % (tree2.bzrdir.root_transport.base,
638
 
       tree2.branch.bzrdir.root_transport.base,
639
 
       repo.bzrdir.root_transport.base,
640
 
       format.get_branch_format().get_format_description(),
 
613
""" % (format.get_branch_format().get_format_description(),
641
614
       format.repository_format.get_format_description(),
642
615
       datestring_first, datestring_first,
643
616
       # poking at _revision_store isn't all that clean, but neither is
651
624
        self.assertEqualDiff(
652
625
"""Checkout (format: dirstate)
653
626
Location:
654
 
       checkout root: %s
655
 
  checkout of branch: %s
 
627
       checkout root: tree/checkout
 
628
  checkout of branch: repo/branch
656
629
 
657
630
Format:
658
631
       control: Meta directory format 1
679
652
Repository:
680
653
         0 revisions
681
654
         0 KiB
682
 
""" % (tree3.bzrdir.root_transport.base,
683
 
       branch1.bzrdir.root_transport.base,
684
 
       format.get_branch_format().get_format_description(),
 
655
""" % (format.get_branch_format().get_format_description(),
685
656
       format.repository_format.get_format_description(),
686
657
       ), out)
687
658
        self.assertEqual('', err)
694
665
        self.assertEqualDiff(
695
666
"""Checkout (format: dirstate)
696
667
Location:
697
 
       checkout root: %s
698
 
  checkout of branch: %s
 
668
       checkout root: tree/checkout
 
669
  checkout of branch: repo/branch
699
670
 
700
671
Format:
701
672
       control: Meta directory format 1
723
694
Repository:
724
695
         1 revision
725
696
         %d KiB
726
 
""" % (tree3.bzrdir.root_transport.base, branch1.bzrdir.root_transport.base,
727
 
       format.get_branch_format().get_format_description(),
 
697
""" % (format.get_branch_format().get_format_description(),
728
698
       format.repository_format.get_format_description(),
729
699
       datestring_first, datestring_first,
730
700
       # poking at _revision_store isn't all that clean, but neither is
741
711
        self.assertEqualDiff(
742
712
"""Lightweight checkout (format: dirstate or dirstate-tags)
743
713
Location:
744
 
  light checkout root: %s
745
 
   checkout of branch: %s
746
 
    shared repository: %s
 
714
  light checkout root: tree/lightcheckout
 
715
   checkout of branch: repo/branch
 
716
    shared repository: repo
747
717
 
748
718
Format:
749
719
       control: Meta directory format 1
773
743
Repository:
774
744
         2 revisions
775
745
         %d KiB
776
 
""" % (tree2.bzrdir.root_transport.base,
777
 
       tree2.branch.bzrdir.root_transport.base,
778
 
       repo.bzrdir.root_transport.base,
779
 
       format.get_branch_format().get_format_description(),
 
746
""" % (format.get_branch_format().get_format_description(),
780
747
       format.repository_format.get_format_description(),
781
748
       datestring_first, datestring_last,
782
749
       # poking at _revision_store isn't all that clean, but neither is
790
757
        self.assertEqualDiff(
791
758
"""Repository branch (format: dirstate or knit)
792
759
Location:
793
 
  shared repository: %s
794
 
  repository branch: branch
 
760
  shared repository: repo
 
761
  repository branch: repo/branch
795
762
 
796
763
Format:
797
764
       control: Meta directory format 1
808
775
Repository:
809
776
         2 revisions
810
777
         %d KiB
811
 
""" % (repo.bzrdir.root_transport.base,
812
 
       format.get_branch_format().get_format_description(),
 
778
""" % (format.get_branch_format().get_format_description(),
813
779
       format.repository_format.get_format_description(),
814
780
       datestring_first, datestring_last,
815
781
       # poking at _revision_store isn't all that clean, but neither is
823
789
        self.assertEqualDiff(
824
790
"""Shared repository (format: dirstate or dirstate-tags or knit)
825
791
Location:
826
 
  shared repository: %s
 
792
  shared repository: repo
827
793
 
828
794
Format:
829
795
       control: Meta directory format 1
832
798
Repository:
833
799
         2 revisions
834
800
         %d KiB
835
 
""" % (repo.bzrdir.root_transport.base,
836
 
       format.repository_format.get_format_description(),
 
801
""" % (format.repository_format.get_format_description(),
837
802
       # poking at _revision_store isn't all that clean, but neither is
838
803
       # having the ui test dependent on the exact overhead of a given store.
839
804
       repo._revision_store.total_size(repo.get_transaction())[1] / 1024,
851
816
        self.assertEqualDiff(
852
817
"""Shared repository with trees (format: dirstate or dirstate-tags or knit)
853
818
Location:
854
 
  shared repository: %s
 
819
  shared repository: repo
855
820
 
856
821
Format:
857
822
       control: Meta directory format 1
862
827
Repository:
863
828
         0 revisions
864
829
         0 KiB
865
 
""" % (repo.bzrdir.root_transport.base,
866
 
       format.repository_format.get_format_description(),
 
830
""" % (format.repository_format.get_format_description(),
867
831
       ), out)
868
832
        self.assertEqual('', err)
869
833
 
878
842
        self.assertEqualDiff(
879
843
"""Repository tree (format: knit)
880
844
Location:
881
 
  shared repository: %s
882
 
  repository branch: branch1
 
845
  shared repository: repo
 
846
  repository branch: repo/branch1
883
847
 
884
848
Format:
885
849
       control: Meta directory format 1
904
868
Repository:
905
869
         0 revisions
906
870
         0 KiB
907
 
""" % (repo.bzrdir.root_transport.base,
908
 
       format.get_branch_format().get_format_description(),
 
871
""" % (format.get_branch_format().get_format_description(),
909
872
       format.repository_format.get_format_description(),
910
873
       ), out)
911
874
        self.assertEqual('', err)
921
884
        self.assertEqualDiff(
922
885
"""Repository tree (format: knit)
923
886
Location:
924
 
  shared repository: %s
925
 
  repository branch: branch1
 
887
  shared repository: repo
 
888
  repository branch: repo/branch1
926
889
 
927
890
Format:
928
891
       control: Meta directory format 1
950
913
Repository:
951
914
         1 revision
952
915
         %d KiB
953
 
""" % (repo.bzrdir.root_transport.base,
954
 
       format.get_branch_format().get_format_description(),
 
916
""" % (format.get_branch_format().get_format_description(),
955
917
       format.repository_format.get_format_description(),
956
918
       datestring_first, datestring_first,
957
919
       # poking at _revision_store isn't all that clean, but neither is
965
927
        self.assertEqualDiff(
966
928
"""Repository tree (format: knit)
967
929
Location:
968
 
  shared repository: %s
969
 
  repository branch: branch2
 
930
  shared repository: repo
 
931
  repository branch: repo/branch2
970
932
 
971
933
Related branches:
972
 
  parent branch: %s
 
934
  parent branch: repo/branch1
973
935
 
974
936
Format:
975
937
       control: Meta directory format 1
994
956
Repository:
995
957
         1 revision
996
958
         %d KiB
997
 
""" % (repo.bzrdir.root_transport.base,
998
 
       branch1.bzrdir.root_transport.base,
999
 
       format.get_branch_format().get_format_description(),
 
959
""" % (format.get_branch_format().get_format_description(),
1000
960
       format.repository_format.get_format_description(),
1001
961
       # poking at _revision_store isn't all that clean, but neither is
1002
962
       # having the ui test dependent on the exact overhead of a given store.
1011
971
        self.assertEqualDiff(
1012
972
"""Repository tree (format: knit)
1013
973
Location:
1014
 
  shared repository: %s
1015
 
  repository branch: branch2
 
974
  shared repository: repo
 
975
  repository branch: repo/branch2
1016
976
 
1017
977
Related branches:
1018
 
  parent branch: %s
 
978
  parent branch: repo/branch1
1019
979
 
1020
980
Format:
1021
981
       control: Meta directory format 1
1043
1003
Repository:
1044
1004
         1 revision
1045
1005
         %d KiB
1046
 
""" % (repo.bzrdir.root_transport.base,
1047
 
       branch1.bzrdir.root_transport.base,
1048
 
       format.get_branch_format().get_format_description(),
 
1006
""" % (format.get_branch_format().get_format_description(),
1049
1007
       format.repository_format.get_format_description(),
1050
1008
       datestring_first, datestring_first,
1051
1009
       # poking at _revision_store isn't all that clean, but neither is
1059
1017
        self.assertEqualDiff(
1060
1018
"""Shared repository with trees (format: dirstate or dirstate-tags or knit)
1061
1019
Location:
1062
 
  shared repository: %s
 
1020
  shared repository: repo
1063
1021
 
1064
1022
Format:
1065
1023
       control: Meta directory format 1
1070
1028
Repository:
1071
1029
         1 revision
1072
1030
         %d KiB
1073
 
""" % (repo.bzrdir.root_transport.base,
1074
 
       format.repository_format.get_format_description(),
 
1031
""" % (format.repository_format.get_format_description(),
1075
1032
       # poking at _revision_store isn't all that clean, but neither is
1076
1033
       # having the ui test dependent on the exact overhead of a given store.
1077
1034
       repo._revision_store.total_size(repo.get_transaction())[1] / 1024,
1090
1047
        self.assertEqualDiff(
1091
1048
"""Shared repository with trees (format: dirstate or dirstate-tags or knit)
1092
1049
Location:
1093
 
  shared repository: %s
 
1050
  shared repository: repo
1094
1051
 
1095
1052
Format:
1096
1053
       control: Meta directory format 1
1101
1058
Repository:
1102
1059
         0 revisions
1103
1060
         0 KiB
1104
 
""" % (repo.bzrdir.root_transport.base,
1105
 
       format.repository_format.get_format_description(),
 
1061
""" % (format.repository_format.get_format_description(),
1106
1062
       ), out)
1107
1063
        self.assertEqual('', err)
1108
1064
 
1114
1070
        self.assertEqualDiff(
1115
1071
"""Repository tree (format: knit)
1116
1072
Location:
1117
 
  shared repository: %s
1118
 
  repository branch: .
 
1073
  shared repository: repo
 
1074
  repository branch: repo
1119
1075
 
1120
1076
Format:
1121
1077
       control: Meta directory format 1
1140
1096
Repository:
1141
1097
         0 revisions
1142
1098
         0 KiB
1143
 
""" % (repo.bzrdir.root_transport.base,
1144
 
       format.get_branch_format().get_format_description(),
 
1099
""" % (format.get_branch_format().get_format_description(),
1145
1100
       format.repository_format.get_format_description(),
1146
1101
       ), out)
1147
1102
        self.assertEqual('', err)
1173
1128
        :param repo_locked: If true, expect the repository to be locked.
1174
1129
        :param verbose: If true, expect verbose output
1175
1130
        """
 
1131
        def friendly_location(url):
 
1132
            path = urlutils.unescape_for_display(url, 'ascii')
 
1133
            try:
 
1134
                return osutils.relpath(os.getcwd(), path)
 
1135
            except errors.PathNotChild:
 
1136
                return path
 
1137
 
1176
1138
        if tree_locked and sys.platform == 'win32':
1177
1139
            # We expect this to fail because of locking errors. (A write-locked
1178
1140
            # file cannot be read-locked in the same process).
1210
1172
        extra_space = ''
1211
1173
        if light_checkout:
1212
1174
            tree_data = ("  light checkout root: %s\n" %
1213
 
                lco_tree.bzrdir.root_transport.base)
 
1175
                friendly_location(lco_tree.bzrdir.root_transport.base))
1214
1176
            extra_space = ' '
1215
1177
        if lco_tree.branch.get_bound_location() is not None:
1216
1178
            tree_data += ("%s       checkout root: %s\n" % (extra_space,
1217
 
                lco_tree.branch.bzrdir.root_transport.base))
 
1179
                friendly_location(lco_tree.branch.bzrdir.root_transport.base)))
1218
1180
        if shared_repo is not None:
1219
1181
            branch_data = (
1220
1182
                "   checkout of branch: %s\n"
1221
1183
                "    shared repository: %s\n" %
1222
 
                (repo_branch.bzrdir.root_transport.base,
1223
 
                 shared_repo.bzrdir.root_transport.base))
 
1184
                (friendly_location(repo_branch.bzrdir.root_transport.base),
 
1185
                 friendly_location(shared_repo.bzrdir.root_transport.base)))
1224
1186
        elif repo_branch is not None:
1225
1187
            branch_data = (
1226
1188
                "%s  checkout of branch: %s\n" %
1227
1189
                (extra_space,
1228
 
                 repo_branch.bzrdir.root_transport.base))
 
1190
                 friendly_location(repo_branch.bzrdir.root_transport.base)))
1229
1191
        else:
1230
1192
            branch_data = ("   checkout of branch: %s\n" %
1231
1193
                lco_tree.branch.bzrdir.root_transport.base)
1428
1390
Repository:
1429
1391
         0 revisions
1430
1392
         0 KiB
1431
 
""" % (tree.bzrdir.root_transport.base,
1432
 
       tree.branch.repository._format.get_format_description(),
 
1393
""" % ('branch', tree.branch.repository._format.get_format_description(),
1433
1394
       ), out)
1434
1395
        self.assertEqual('', err)
1435
1396
        # L L L
1463
1424
Repository:
1464
1425
         0 revisions
1465
1426
         0 KiB
1466
 
""" % (tree.bzrdir.root_transport.base,
1467
 
       tree.branch.repository._format.get_format_description(),
 
1427
""" % ('branch', tree.branch.repository._format.get_format_description(),
1468
1428
       ), out)
1469
1429
        self.assertEqual('', err)
1470
1430
        tree.unlock()