~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2006-04-19 23:32:08 UTC
  • mto: (1711.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1674.
  • Revision ID: robertc@robertcollins.net-20060419233208-2ed6906796994316
Make knit the default format.
Adjust affect tests to either have knit specific values or to be more generic,
as appropriate.
Disable all SFTP prefetching for known paramikos - direct readv support is now
a TODO.

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
       control: Meta directory format 1
135
135
  working tree: Working tree format 3
136
136
        branch: Branch format 5
137
 
    repository: Weave repository format 7
 
137
    repository: %s
138
138
 
139
139
In the working tree:
140
140
         1 unchanged
154
154
 
155
155
Revision store:
156
156
         1 revision
157
 
         0 KiB
 
157
         %d KiB
158
158
""" % (branch3.bzrdir.root_transport.base, branch1.bzrdir.root_transport.base,
159
159
       branch1.bzrdir.root_transport.base,
160
 
       datestring_first, datestring_first), out)
 
160
       branch3.repository._format.get_format_description(),
 
161
       datestring_first, datestring_first,
 
162
       # poking at _revision_store isn't all that clean, but neither is
 
163
       # having the ui test dependent on the exact overhead of a given store.
 
164
       branch3.repository._revision_store.total_size(
 
165
        branch3.repository.get_transaction())[1] / 1024,
 
166
       ), out)
161
167
        self.assertEqual('', err)
162
168
 
163
169
        # Checkout standalone (same as above, but does not have parent set)
177
183
       control: Meta directory format 1
178
184
  working tree: Working tree format 3
179
185
        branch: Branch format 5
180
 
    repository: Weave repository format 7
 
186
    repository: %s
181
187
 
182
188
In the working tree:
183
189
         1 unchanged
198
204
 
199
205
Revision store:
200
206
         1 revision
201
 
         0 KiB
 
207
         %d KiB
202
208
""" % (branch4.bzrdir.root_transport.base, branch1.bzrdir.root_transport.base,
203
 
       datestring_first, datestring_first), out)
 
209
       branch4.repository._format.get_format_description(),
 
210
       datestring_first, datestring_first,
 
211
       # poking at _revision_store isn't all that clean, but neither is
 
212
       # having the ui test dependent on the exact overhead of a given store.
 
213
       branch4.repository._revision_store.total_size(
 
214
        branch4.repository.get_transaction())[1] / 1024,
 
215
       ), out)
204
216
        self.assertEqual('', err)
205
217
 
206
218
        # Lightweight checkout (same as above, different branch and repository)
305
317
       control: Meta directory format 1
306
318
  working tree: Working tree format 3
307
319
        branch: Branch format 5
308
 
    repository: Weave repository format 7
 
320
    repository: %s
309
321
 
310
322
Branch is out of date: missing 1 revision.
311
323
 
327
339
 
328
340
Revision store:
329
341
         1 revision
330
 
         0 KiB
 
342
         %d KiB
331
343
""" % (branch3.bzrdir.root_transport.base, branch1.bzrdir.root_transport.base,
332
344
       branch1.bzrdir.root_transport.base,
333
 
       datestring_first, datestring_first), out)
 
345
       branch3.repository._format.get_format_description(),
 
346
       datestring_first, datestring_first,
 
347
       # poking at _revision_store isn't all that clean, but neither is
 
348
       # having the ui test dependent on the exact overhead of a given store.
 
349
       branch3.repository._revision_store.total_size(
 
350
        branch3.repository.get_transaction())[1] / 1024,
 
351
       ), out)
334
352
        self.assertEqual('', err)
335
353
 
336
354
        # Out of date checkout
344
362
       control: Meta directory format 1
345
363
  working tree: Working tree format 3
346
364
        branch: Branch format 5
347
 
    repository: Weave repository format 7
 
365
    repository: %s
348
366
 
349
367
Branch is out of date: missing 1 revision.
350
368
 
366
384
 
367
385
Revision store:
368
386
         1 revision
369
 
         0 KiB
 
387
         %d KiB
370
388
""" % (branch4.bzrdir.root_transport.base, branch1.bzrdir.root_transport.base,
371
 
       datestring_first, datestring_first), out)
 
389
       branch4.repository._format.get_format_description(),
 
390
       datestring_first, datestring_first,
 
391
       # poking at _revision_store isn't all that clean, but neither is
 
392
       # having the ui test dependent on the exact overhead of a given store.
 
393
       branch4.repository._revision_store.total_size(
 
394
        branch4.repository.get_transaction())[1] / 1024,
 
395
       ), out)
372
396
        self.assertEqual('', err)
373
397
 
374
398
        # Out of date lightweight checkout
425
449
 
426
450
Format:
427
451
       control: Meta directory format 1
428
 
    repository: Weave repository format 7
 
452
    repository: %s
429
453
 
430
454
Revision store:
431
455
         0 revisions
432
456
         0 KiB
433
 
""" % repo.bzrdir.root_transport.base, out)
 
457
""" % (repo.bzrdir.root_transport.base, repo._format.get_format_description()),
 
458
            out)
434
459
        self.assertEqual('', err)
435
460
 
436
461
        # Create branch inside shared repository
445
470
Format:
446
471
       control: Meta directory format 1
447
472
        branch: Branch format 5
448
 
    repository: Weave repository format 7
 
473
    repository: %s
449
474
 
450
475
Branch history:
451
476
         0 revisions
454
479
         0 revisions
455
480
         0 KiB
456
481
""" % (branch1.bzrdir.root_transport.base,
457
 
       repo.bzrdir.root_transport.base), out)
 
482
       repo.bzrdir.root_transport.base,
 
483
       repo._format.get_format_description(),
 
484
       ), out)
458
485
        self.assertEqual('', err)
459
486
 
460
487
        # Create lightweight checkout
476
503
       control: Meta directory format 1
477
504
  working tree: Working tree format 3
478
505
        branch: Branch format 5
479
 
    repository: Weave repository format 7
 
506
    repository: %s
480
507
 
481
508
In the working tree:
482
509
         0 unchanged
496
523
         0 KiB
497
524
""" % (tree2.bzrdir.root_transport.base,
498
525
       branch1.bzrdir.root_transport.base,
499
 
       repo.bzrdir.root_transport.base), out)
 
526
       repo.bzrdir.root_transport.base,
 
527
       repo._format.get_format_description(),
 
528
       ), out)
500
529
        self.assertEqual('', err)
501
530
 
502
531
        # Create normal checkout
514
543
       control: Meta directory format 1
515
544
  working tree: Working tree format 3
516
545
        branch: Branch format 5
517
 
    repository: Weave repository format 7
 
546
    repository: %s
518
547
 
519
548
In the working tree:
520
549
         0 unchanged
534
563
         0 revisions
535
564
         0 KiB
536
565
""" % (branch3.bzrdir.root_transport.base,
537
 
       branch1.bzrdir.root_transport.base), out)
 
566
       branch1.bzrdir.root_transport.base,
 
567
       repo._format.get_format_description(),
 
568
       ), out)
538
569
        self.assertEqual('', err)
539
570
 
540
571
        # Update lightweight checkout
554
585
       control: Meta directory format 1
555
586
  working tree: Working tree format 3
556
587
        branch: Branch format 5
557
 
    repository: Weave repository format 7
 
588
    repository: %s
558
589
 
559
590
In the working tree:
560
591
         1 unchanged
575
606
 
576
607
Revision store:
577
608
         1 revision
578
 
         0 KiB
 
609
         %d KiB
579
610
""" % (tree2.bzrdir.root_transport.base,
580
611
       branch1.bzrdir.root_transport.base,
581
612
       repo.bzrdir.root_transport.base,
582
 
       datestring_first, datestring_first), out)
 
613
       repo._format.get_format_description(),
 
614
       datestring_first, datestring_first,
 
615
       # poking at _revision_store isn't all that clean, but neither is
 
616
       # having the ui test dependent on the exact overhead of a given store.
 
617
       repo._revision_store.total_size(repo.get_transaction())[1] / 1024,
 
618
       ), out)
583
619
        self.assertEqual('', err)
584
620
 
585
621
        # Out of date checkout
593
629
       control: Meta directory format 1
594
630
  working tree: Working tree format 3
595
631
        branch: Branch format 5
596
 
    repository: Weave repository format 7
 
632
    repository: %s
597
633
 
598
634
Branch is out of date: missing 1 revision.
599
635
 
614
650
         0 revisions
615
651
         0 KiB
616
652
""" % (tree3.bzrdir.root_transport.base,
617
 
       branch1.bzrdir.root_transport.base), out)
 
653
       branch1.bzrdir.root_transport.base,
 
654
       repo._format.get_format_description(),
 
655
       ), out)
618
656
        self.assertEqual('', err)
619
657
 
620
658
        # Update checkout
631
669
       control: Meta directory format 1
632
670
  working tree: Working tree format 3
633
671
        branch: Branch format 5
634
 
    repository: Weave repository format 7
 
672
    repository: %s
635
673
 
636
674
In the working tree:
637
675
         1 unchanged
652
690
 
653
691
Revision store:
654
692
         1 revision
655
 
         0 KiB
 
693
         %d KiB
656
694
""" % (tree3.bzrdir.root_transport.base, branch1.bzrdir.root_transport.base,
657
 
       datestring_first, datestring_first), out)
 
695
       repo._format.get_format_description(),
 
696
       datestring_first, datestring_first,
 
697
       # poking at _revision_store isn't all that clean, but neither is
 
698
       # having the ui test dependent on the exact overhead of a given store.
 
699
       repo._revision_store.total_size(repo.get_transaction())[1] / 1024,
 
700
       ), out)
658
701
        self.assertEqual('', err)
659
702
        tree3.commit('commit two')
660
703
 
672
715
       control: Meta directory format 1
673
716
  working tree: Working tree format 3
674
717
        branch: Branch format 5
675
 
    repository: Weave repository format 7
 
718
    repository: %s
676
719
 
677
720
Working tree is out of date: missing 1 revision.
678
721
 
695
738
 
696
739
Revision store:
697
740
         2 revisions
698
 
         0 KiB
 
741
         %d KiB
699
742
""" % (tree2.bzrdir.root_transport.base,
700
743
       branch1.bzrdir.root_transport.base,
701
744
       repo.bzrdir.root_transport.base,
702
 
       datestring_first, datestring_last), out)
 
745
       repo._format.get_format_description(),
 
746
       datestring_first, datestring_last,
 
747
       # poking at _revision_store isn't all that clean, but neither is
 
748
       # having the ui test dependent on the exact overhead of a given store.
 
749
       repo._revision_store.total_size(repo.get_transaction())[1] / 1024,
 
750
       ), out)
703
751
        self.assertEqual('', err)
704
752
 
705
753
        # Show info about shared branch
712
760
Format:
713
761
       control: Meta directory format 1
714
762
        branch: Branch format 5
715
 
    repository: Weave repository format 7
 
763
    repository: %s
716
764
 
717
765
Branch history:
718
766
         2 revisions
723
771
 
724
772
Revision store:
725
773
         2 revisions
726
 
         0 KiB
 
774
         %d KiB
727
775
""" % (branch1.bzrdir.root_transport.base,
728
776
       repo.bzrdir.root_transport.base,
729
 
       datestring_first, datestring_last), out)
 
777
       repo._format.get_format_description(),
 
778
       datestring_first, datestring_last,
 
779
       # poking at _revision_store isn't all that clean, but neither is
 
780
       # having the ui test dependent on the exact overhead of a given store.
 
781
       repo._revision_store.total_size(repo.get_transaction())[1] / 1024,
 
782
       ), out)
730
783
        self.assertEqual('', err)
731
784
 
732
785
        # Show info about repository with revisions
737
790
 
738
791
Format:
739
792
       control: Meta directory format 1
740
 
    repository: Weave repository format 7
 
793
    repository: %s
741
794
 
742
795
Revision store:
743
796
         2 revisions
744
 
         0 KiB
745
 
""" % repo.bzrdir.root_transport.base, out)
 
797
         %d KiB
 
798
""" % (repo.bzrdir.root_transport.base,
 
799
       repo._format.get_format_description(),
 
800
       # poking at _revision_store isn't all that clean, but neither is
 
801
       # having the ui test dependent on the exact overhead of a given store.
 
802
       repo._revision_store.total_size(repo.get_transaction())[1] / 1024,
 
803
       ),
 
804
       out)
746
805
        self.assertEqual('', err)
747
806
 
748
807
        bzrlib.bzrdir.BzrDirFormat.set_default_format(old_format)
762
821
 
763
822
Format:
764
823
       control: Meta directory format 1
765
 
    repository: Weave repository format 7
 
824
    repository: %s
766
825
 
767
826
Create working tree for new branches inside the repository.
768
827
 
769
828
Revision store:
770
829
         0 revisions
771
830
         0 KiB
772
 
""" % repo.bzrdir.root_transport.base, out)
 
831
""" % (repo.bzrdir.root_transport.base,
 
832
       repo._format.get_format_description(),
 
833
       ), out)
773
834
        self.assertEqual('', err)
774
835
 
775
836
        # Create two branches
788
849
       control: Meta directory format 1
789
850
  working tree: Working tree format 3
790
851
        branch: Branch format 5
791
 
    repository: Weave repository format 7
 
852
    repository: %s
792
853
 
793
854
In the working tree:
794
855
         0 unchanged
808
869
         0 revisions
809
870
         0 KiB
810
871
""" % (branch1.bzrdir.root_transport.base,
811
 
       repo.bzrdir.root_transport.base), out)
 
872
       repo.bzrdir.root_transport.base,
 
873
       repo._format.get_format_description(),
 
874
       ), out)
812
875
        self.assertEqual('', err)
813
876
 
814
877
        # Update first branch
828
891
       control: Meta directory format 1
829
892
  working tree: Working tree format 3
830
893
        branch: Branch format 5
831
 
    repository: Weave repository format 7
 
894
    repository: %s
832
895
 
833
896
In the working tree:
834
897
         1 unchanged
848
911
 
849
912
Revision store:
850
913
         1 revision
851
 
         0 KiB
 
914
         %d KiB
852
915
""" % (branch1.bzrdir.root_transport.base, repo.bzrdir.root_transport.base,
853
 
       datestring_first, datestring_first), out)
 
916
       repo._format.get_format_description(),
 
917
       datestring_first, datestring_first,
 
918
       # poking at _revision_store isn't all that clean, but neither is
 
919
       # having the ui test dependent on the exact overhead of a given store.
 
920
       repo._revision_store.total_size(repo.get_transaction())[1] / 1024,
 
921
       ), out)
854
922
        self.assertEqual('', err)
855
923
 
856
924
        # Out of date second branch
865
933
       control: Meta directory format 1
866
934
  working tree: Working tree format 3
867
935
        branch: Branch format 5
868
 
    repository: Weave repository format 7
 
936
    repository: %s
869
937
 
870
938
In the working tree:
871
939
         0 unchanged
883
951
 
884
952
Revision store:
885
953
         1 revision
886
 
         0 KiB
 
954
         %d KiB
887
955
""" % (branch2.bzrdir.root_transport.base, repo.bzrdir.root_transport.base,
888
 
       branch1.bzrdir.root_transport.base), out)
 
956
       branch1.bzrdir.root_transport.base,
 
957
       repo._format.get_format_description(),
 
958
       # poking at _revision_store isn't all that clean, but neither is
 
959
       # having the ui test dependent on the exact overhead of a given store.
 
960
       repo._revision_store.total_size(repo.get_transaction())[1] / 1024,
 
961
       ), out)
889
962
        self.assertEqual('', err)
890
963
 
891
964
        # Update second branch
902
975
       control: Meta directory format 1
903
976
  working tree: Working tree format 3
904
977
        branch: Branch format 5
905
 
    repository: Weave repository format 7
 
978
    repository: %s
906
979
 
907
980
In the working tree:
908
981
         1 unchanged
922
995
 
923
996
Revision store:
924
997
         1 revision
925
 
         0 KiB
 
998
         %d KiB
926
999
""" % (branch2.bzrdir.root_transport.base,
927
1000
       repo.bzrdir.root_transport.base,
928
1001
       branch1.bzrdir.root_transport.base,
929
 
       datestring_first, datestring_first), out)
 
1002
       repo._format.get_format_description(),
 
1003
       datestring_first, datestring_first,
 
1004
       # poking at _revision_store isn't all that clean, but neither is
 
1005
       # having the ui test dependent on the exact overhead of a given store.
 
1006
       repo._revision_store.total_size(repo.get_transaction())[1] / 1024,
 
1007
       ), out)
930
1008
        self.assertEqual('', err)
931
1009
 
932
1010
        # Show info about repository with revisions
937
1015
 
938
1016
Format:
939
1017
       control: Meta directory format 1
940
 
    repository: Weave repository format 7
 
1018
    repository: %s
941
1019
 
942
1020
Create working tree for new branches inside the repository.
943
1021
 
944
1022
Revision store:
945
1023
         1 revision
946
 
         0 KiB
947
 
""" % repo.bzrdir.root_transport.base, out)
 
1024
         %d KiB
 
1025
""" % (repo.bzrdir.root_transport.base,
 
1026
       repo._format.get_format_description(),
 
1027
       # poking at _revision_store isn't all that clean, but neither is
 
1028
       # having the ui test dependent on the exact overhead of a given store.
 
1029
       repo._revision_store.total_size(repo.get_transaction())[1] / 1024,
 
1030
       ),
 
1031
       out)
948
1032
        self.assertEqual('', err)
949
1033
 
950
1034
        bzrlib.bzrdir.BzrDirFormat.set_default_format(old_format)