/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/interrepository_implementations/__init__.py

  • Committer: Andrew Bennetts
  • Date: 2009-07-06 02:35:56 UTC
  • mto: (4476.3.44 inventory-delta)
  • mto: This revision was merged to the branch mainline in revision 4608.
  • Revision ID: andrew.bennetts@canonical.com-20090706023556-uqb6etkjs5emqkbk
Fix streaming of inventory records in get_stream_for_missing_keys, plus other tweaks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
                           format_to_test, format_to_test))
87
87
    # if there are specific combinations we want to use, we can add them
88
88
    # here. We want to test rich root upgrading.
89
 
    result.append((InterRepository,
90
 
                   weaverepo.RepositoryFormat5(),
91
 
                   knitrepo.RepositoryFormatKnit3()))
92
 
    result.append((InterRepository,
93
 
                   knitrepo.RepositoryFormatKnit1(),
94
 
                   knitrepo.RepositoryFormatKnit3()))
95
 
    result.append((InterKnitRepo,
96
 
                   knitrepo.RepositoryFormatKnit1(),
97
 
                   pack_repo.RepositoryFormatKnitPack1()))
98
 
    result.append((InterKnitRepo,
99
 
                   pack_repo.RepositoryFormatKnitPack1(),
100
 
                   knitrepo.RepositoryFormatKnit1()))
101
 
    result.append((InterKnitRepo,
102
 
                   knitrepo.RepositoryFormatKnit3(),
103
 
                   pack_repo.RepositoryFormatKnitPack3()))
104
 
    result.append((InterKnitRepo,
105
 
                   pack_repo.RepositoryFormatKnitPack3(),
106
 
                   knitrepo.RepositoryFormatKnit3()))
107
 
    result.append((InterKnitRepo,
108
 
                   pack_repo.RepositoryFormatKnitPack3(),
109
 
                   pack_repo.RepositoryFormatKnitPack4()))
110
 
    result.append((InterDifferingSerializer,
111
 
                   pack_repo.RepositoryFormatKnitPack1(),
112
 
                   pack_repo.RepositoryFormatKnitPack6RichRoot()))
113
 
#    result.append((InterRepository,
114
 
#                   pack_repo.RepositoryFormatKnitPack6RichRoot(),
115
 
#                   groupcompress_repo.RepositoryFormat2a()))
 
89
    def add_combo(inter_class, from_format, to_format):
 
90
        result.append((inter_class, from_format, to_format))
 
91
    add_combo(InterRepository,
 
92
              weaverepo.RepositoryFormat5(),
 
93
              knitrepo.RepositoryFormatKnit3())
 
94
    add_combo(InterRepository,
 
95
              knitrepo.RepositoryFormatKnit1(),
 
96
              knitrepo.RepositoryFormatKnit3())
 
97
    add_combo(InterKnitRepo,
 
98
              knitrepo.RepositoryFormatKnit1(),
 
99
              pack_repo.RepositoryFormatKnitPack1())
 
100
    add_combo(InterKnitRepo,
 
101
              pack_repo.RepositoryFormatKnitPack1(),
 
102
              knitrepo.RepositoryFormatKnit1())
 
103
    add_combo(InterKnitRepo,
 
104
              knitrepo.RepositoryFormatKnit3(),
 
105
              pack_repo.RepositoryFormatKnitPack3())
 
106
    add_combo(InterKnitRepo,
 
107
              pack_repo.RepositoryFormatKnitPack3(),
 
108
              knitrepo.RepositoryFormatKnit3())
 
109
    add_combo(InterKnitRepo,
 
110
              pack_repo.RepositoryFormatKnitPack3(),
 
111
              pack_repo.RepositoryFormatKnitPack4())
 
112
    add_combo(InterDifferingSerializer,
 
113
              pack_repo.RepositoryFormatKnitPack1(),
 
114
              pack_repo.RepositoryFormatKnitPack6RichRoot())
 
115
    add_combo(InterRepository,
 
116
              pack_repo.RepositoryFormatKnitPack6RichRoot(),
 
117
              groupcompress_repo.RepositoryFormat2a())
 
118
    add_combo(InterRepository,
 
119
              groupcompress_repo.RepositoryFormat2a(),
 
120
              pack_repo.RepositoryFormatKnitPack6RichRoot())
116
121
    return result
117
122
 
118
123