~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_versionedfile.py

Bring the groupcompress plugin into the brisbane-core branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
from itertools import chain, izip
25
25
from StringIO import StringIO
26
26
 
27
 
import bzrlib
28
27
from bzrlib import (
29
28
    errors,
 
29
    groupcompress,
 
30
    knit as _mod_knit,
30
31
    osutils,
31
32
    progress,
32
33
    )
35
36
                           RevisionAlreadyPresent,
36
37
                           WeaveParentMismatch
37
38
                           )
38
 
from bzrlib import knit as _mod_knit
39
39
from bzrlib.knit import (
40
40
    cleanup_pack_knit,
41
41
    make_file_factory,
122
122
            'key_length':1,
123
123
            'support_partial_insertion': False,
124
124
            }),
 
125
        # ('groupcompress', {
 
126
        #     'cleanup':groupcompress.cleanup_pack_group,
 
127
        #     'factory':groupcompress.make_pack_factory(True, True, 1),
 
128
        #     'graph': True,
 
129
        #     'key_length':1,
 
130
        #     'support_partial_insertion':False,
 
131
        #     }),
 
132
        ('groupcompress-nograph', {
 
133
            'cleanup':groupcompress.cleanup_pack_group,
 
134
            'factory':groupcompress.make_pack_factory(False, False, 1),
 
135
            'graph': False,
 
136
            'key_length':1,
 
137
            'support_partial_insertion':False,
 
138
            }),
125
139
        ]
126
140
    len_two_scenarios = [
127
141
        ('weave-prefix', {
146
160
            'key_length':2,
147
161
            'support_partial_insertion': True,
148
162
            }),
 
163
        # ('groupcompress', {
 
164
        #     'cleanup':groupcompress.cleanup_pack_group,
 
165
        #     'factory':groupcompress.make_pack_factory(True, False, 1),
 
166
        #     'graph': True,
 
167
        #     'key_length':1,
 
168
        #     'support_partial_insertion':False,
 
169
        #     }),
149
170
        ]
150
171
    scenarios = len_one_scenarios + len_two_scenarios
151
172
    return multiply_tests(to_adapt, scenarios, result)