/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

New call get_format_description to give a user-friendly description of a
format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        out, err = self.runbzr('info standalone')
44
44
        self.assertEqualDiff(
45
45
"""Location:
46
 
          branch root: %s
 
46
         branch root: %s
47
47
 
48
48
Format:
49
 
        branch format: Bazaar-NG branch, format 6
 
49
       control: All-in-one format 6
 
50
  working tree: Working tree format 2
 
51
        branch: Branch format 4
 
52
    repository: Weave repository format 6
50
53
 
51
54
In the working tree:
52
55
         0 unchanged
77
80
        out, err = self.runbzr('info branch')
78
81
        self.assertEqualDiff(
79
82
"""Location:
80
 
          branch root: %s
81
 
        parent branch: %s
82
 
       push to branch: %s
 
83
         branch root: %s
 
84
       parent branch: %s
 
85
      push to branch: %s
83
86
 
84
87
Format:
85
 
        branch format: Bazaar-NG branch, format 6
 
88
       control: All-in-one format 6
 
89
  working tree: Working tree format 2
 
90
        branch: Branch format 4
 
91
    repository: Weave repository format 6
86
92
 
87
93
In the working tree:
88
94
         1 unchanged
121
127
        out, err = self.runbzr('info bound')
122
128
        self.assertEqualDiff(
123
129
"""Location:
124
 
          branch root: %s
125
 
      bound to branch: %s
126
 
        parent branch: %s
 
130
         branch root: %s
 
131
     bound to branch: %s
 
132
       parent branch: %s
127
133
 
128
134
Format:
129
 
  working tree format: Bazaar-NG Working Tree format 3
130
 
        branch format: Bazaar-NG branch format 5
131
 
    repository format: Bazaar-NG Repository format 7
 
135
       control: Meta directory format 1
 
136
  working tree: Working tree format 3
 
137
        branch: Branch format 5
 
138
    repository: Weave repository format 7
132
139
 
133
140
In the working tree:
134
141
         1 unchanged
165
172
        out, err = self.runbzr('info checkout')
166
173
        self.assertEqualDiff(
167
174
"""Location:
168
 
          branch root: %s
169
 
      bound to branch: %s
 
175
         branch root: %s
 
176
     bound to branch: %s
170
177
 
171
178
Format:
172
 
  working tree format: Bazaar-NG Working Tree format 3
173
 
        branch format: Bazaar-NG branch format 5
174
 
    repository format: Bazaar-NG Repository format 7
 
179
       control: Meta directory format 1
 
180
  working tree: Working tree format 3
 
181
        branch: Branch format 5
 
182
    repository: Weave repository format 7
175
183
 
176
184
In the working tree:
177
185
         1 unchanged
210
218
        out, err = self.runbzr('info lightcheckout')
211
219
        self.assertEqualDiff(
212
220
"""Location:
213
 
        checkout root: %s
214
 
   checkout of branch: %s
 
221
       checkout root: %s
 
222
  checkout of branch: %s
215
223
 
216
224
Format:
217
 
  working tree format: Bazaar-NG Working Tree format 3
218
 
        branch format: Bazaar-NG branch, format 6
219
 
    repository format: Bazaar-NG branch, format 6
 
225
       control: Meta directory format 1
 
226
  working tree: Working tree format 3
 
227
        branch: Branch format 4
 
228
    repository: Weave repository format 6
220
229
 
221
230
In the working tree:
222
231
         1 unchanged
253
262
        out, err = self.runbzr('info branch')
254
263
        self.assertEqualDiff(
255
264
"""Location:
256
 
          branch root: %s
257
 
        parent branch: %s
258
 
       push to branch: %s
 
265
         branch root: %s
 
266
       parent branch: %s
 
267
      push to branch: %s
259
268
 
260
269
Format:
261
 
        branch format: Bazaar-NG branch, format 6
 
270
       control: All-in-one format 6
 
271
  working tree: Working tree format 2
 
272
        branch: Branch format 4
 
273
    repository: Weave repository format 6
262
274
 
263
275
In the working tree:
264
276
         1 unchanged
289
301
        out, err = self.runbzr('info bound')
290
302
        self.assertEqualDiff(
291
303
"""Location:
292
 
          branch root: %s
293
 
      bound to branch: %s
294
 
        parent branch: %s
 
304
         branch root: %s
 
305
     bound to branch: %s
 
306
       parent branch: %s
295
307
 
296
308
Format:
297
 
  working tree format: Bazaar-NG Working Tree format 3
298
 
        branch format: Bazaar-NG branch format 5
299
 
    repository format: Bazaar-NG Repository format 7
 
309
       control: Meta directory format 1
 
310
  working tree: Working tree format 3
 
311
        branch: Branch format 5
 
312
    repository: Weave repository format 7
300
313
 
301
314
Branch is out of date: missing 1 revision.
302
315
 
329
342
        out, err = self.runbzr('info checkout')
330
343
        self.assertEqualDiff(
331
344
"""Location:
332
 
          branch root: %s
333
 
      bound to branch: %s
 
345
         branch root: %s
 
346
     bound to branch: %s
334
347
 
335
348
Format:
336
 
  working tree format: Bazaar-NG Working Tree format 3
337
 
        branch format: Bazaar-NG branch format 5
338
 
    repository format: Bazaar-NG Repository format 7
 
349
       control: Meta directory format 1
 
350
  working tree: Working tree format 3
 
351
        branch: Branch format 5
 
352
    repository: Weave repository format 7
339
353
 
340
354
Branch is out of date: missing 1 revision.
341
355
 
367
381
        out, err = self.runbzr('info lightcheckout')
368
382
        self.assertEqualDiff(
369
383
"""Location:
370
 
        checkout root: %s
371
 
   checkout of branch: %s
 
384
       checkout root: %s
 
385
  checkout of branch: %s
372
386
 
373
387
Format:
374
 
  working tree format: Bazaar-NG Working Tree format 3
375
 
        branch format: Bazaar-NG branch, format 6
376
 
    repository format: Bazaar-NG branch, format 6
 
388
       control: Meta directory format 1
 
389
  working tree: Working tree format 3
 
390
        branch: Branch format 4
 
391
    repository: Weave repository format 6
377
392
 
378
393
Working tree is out of date: missing 1 revision.
379
394
 
422
437
        out, err = self.runbzr('info tree/lightcheckout')
423
438
        self.assertEqualDiff(
424
439
"""Location:
425
 
        checkout root: %s
426
 
   checkout of branch: %s
427
 
    shared repository: %s
 
440
       checkout root: %s
 
441
  checkout of branch: %s
 
442
   shared repository: %s
428
443
 
429
444
Format:
430
 
  working tree format: Bazaar-NG Working Tree format 3
431
 
        branch format: Bazaar-NG branch format 5
432
 
    repository format: Bazaar-NG Repository format 7
 
445
       control: Meta directory format 1
 
446
  working tree: Working tree format 3
 
447
        branch: Branch format 5
 
448
    repository: Weave repository format 7
433
449
 
434
450
In the working tree:
435
451
         0 unchanged
461
477
        out, err = self.runbzr('info tree/checkout')
462
478
        self.assertEqualDiff(
463
479
"""Location:
464
 
          branch root: %s
465
 
      bound to branch: %s
 
480
         branch root: %s
 
481
     bound to branch: %s
466
482
 
467
483
Format:
468
 
  working tree format: Bazaar-NG Working Tree format 3
469
 
        branch format: Bazaar-NG branch format 5
470
 
    repository format: Bazaar-NG Repository format 7
 
484
       control: Meta directory format 1
 
485
  working tree: Working tree format 3
 
486
        branch: Branch format 5
 
487
    repository: Weave repository format 7
471
488
 
472
489
In the working tree:
473
490
         0 unchanged
499
516
        out, err = self.runbzr('info tree/lightcheckout')
500
517
        self.assertEqualDiff(
501
518
"""Location:
502
 
        checkout root: %s
503
 
   checkout of branch: %s
504
 
    shared repository: %s
 
519
       checkout root: %s
 
520
  checkout of branch: %s
 
521
   shared repository: %s
505
522
 
506
523
Format:
507
 
  working tree format: Bazaar-NG Working Tree format 3
508
 
        branch format: Bazaar-NG branch format 5
509
 
    repository format: Bazaar-NG Repository format 7
 
524
       control: Meta directory format 1
 
525
  working tree: Working tree format 3
 
526
        branch: Branch format 5
 
527
    repository: Weave repository format 7
510
528
 
511
529
In the working tree:
512
530
         1 unchanged
538
556
        out, err = self.runbzr('info tree/checkout')
539
557
        self.assertEqualDiff(
540
558
"""Location:
541
 
          branch root: %s
542
 
      bound to branch: %s
 
559
         branch root: %s
 
560
     bound to branch: %s
543
561
 
544
562
Format:
545
 
  working tree format: Bazaar-NG Working Tree format 3
546
 
        branch format: Bazaar-NG branch format 5
547
 
    repository format: Bazaar-NG Repository format 7
 
563
       control: Meta directory format 1
 
564
  working tree: Working tree format 3
 
565
        branch: Branch format 5
 
566
    repository: Weave repository format 7
548
567
 
549
568
Branch is out of date: missing 1 revision.
550
569
 
576
595
        out, err = self.runbzr('info tree/checkout')
577
596
        self.assertEqualDiff(
578
597
"""Location:
579
 
          branch root: %s
580
 
      bound to branch: %s
 
598
         branch root: %s
 
599
     bound to branch: %s
581
600
 
582
601
Format:
583
 
  working tree format: Bazaar-NG Working Tree format 3
584
 
        branch format: Bazaar-NG branch format 5
585
 
    repository format: Bazaar-NG Repository format 7
 
602
       control: Meta directory format 1
 
603
  working tree: Working tree format 3
 
604
        branch: Branch format 5
 
605
    repository: Weave repository format 7
586
606
 
587
607
In the working tree:
588
608
         1 unchanged
615
635
        out, err = self.runbzr('info tree/lightcheckout')
616
636
        self.assertEqualDiff(
617
637
"""Location:
618
 
        checkout root: %s
619
 
   checkout of branch: %s
620
 
    shared repository: %s
 
638
       checkout root: %s
 
639
  checkout of branch: %s
 
640
   shared repository: %s
621
641
 
622
642
Format:
623
 
  working tree format: Bazaar-NG Working Tree format 3
624
 
        branch format: Bazaar-NG branch format 5
625
 
    repository format: Bazaar-NG Repository format 7
 
643
       control: Meta directory format 1
 
644
  working tree: Working tree format 3
 
645
        branch: Branch format 5
 
646
    repository: Weave repository format 7
626
647
 
627
648
Working tree is out of date: missing 1 revision.
628
649
 
670
691
        out, err = self.runbzr('info repo/branch1')
671
692
        self.assertEqualDiff(
672
693
"""Location:
673
 
          branch root: %s
674
 
    shared repository: %s
 
694
         branch root: %s
 
695
   shared repository: %s
675
696
 
676
697
Format:
677
 
  working tree format: Bazaar-NG Working Tree format 3
678
 
        branch format: Bazaar-NG branch format 5
679
 
    repository format: Bazaar-NG Repository format 7
 
698
       control: Meta directory format 1
 
699
  working tree: Working tree format 3
 
700
        branch: Branch format 5
 
701
    repository: Weave repository format 7
680
702
 
681
703
In the working tree:
682
704
         0 unchanged
709
731
        out, err = self.runbzr('info repo/branch1')
710
732
        self.assertEqualDiff(
711
733
"""Location:
712
 
          branch root: %s
713
 
    shared repository: %s
 
734
         branch root: %s
 
735
   shared repository: %s
714
736
 
715
737
Format:
716
 
  working tree format: Bazaar-NG Working Tree format 3
717
 
        branch format: Bazaar-NG branch format 5
718
 
    repository format: Bazaar-NG Repository format 7
 
738
       control: Meta directory format 1
 
739
  working tree: Working tree format 3
 
740
        branch: Branch format 5
 
741
    repository: Weave repository format 7
719
742
 
720
743
In the working tree:
721
744
         1 unchanged
745
768
        out, err = self.runbzr('info repo/branch2')
746
769
        self.assertEqualDiff(
747
770
"""Location:
748
 
          branch root: %s
749
 
    shared repository: %s
750
 
        parent branch: %s
 
771
         branch root: %s
 
772
   shared repository: %s
 
773
       parent branch: %s
751
774
 
752
775
Format:
753
 
  working tree format: Bazaar-NG Working Tree format 3
754
 
        branch format: Bazaar-NG branch format 5
755
 
    repository format: Bazaar-NG Repository format 7
 
776
       control: Meta directory format 1
 
777
  working tree: Working tree format 3
 
778
        branch: Branch format 5
 
779
    repository: Weave repository format 7
756
780
 
757
781
In the working tree:
758
782
         0 unchanged
781
805
        out, err = self.runbzr('info repo/branch2')
782
806
        self.assertEqualDiff(
783
807
"""Location:
784
 
          branch root: %s
785
 
    shared repository: %s
786
 
        parent branch: %s
 
808
         branch root: %s
 
809
   shared repository: %s
 
810
       parent branch: %s
787
811
 
788
812
Format:
789
 
  working tree format: Bazaar-NG Working Tree format 3
790
 
        branch format: Bazaar-NG branch format 5
791
 
    repository format: Bazaar-NG Repository format 7
 
813
       control: Meta directory format 1
 
814
  working tree: Working tree format 3
 
815
        branch: Branch format 5
 
816
    repository: Weave repository format 7
792
817
 
793
818
In the working tree:
794
819
         1 unchanged