~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_versionedfile.py

Bring the groupcompress code into brisbane-core.

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-nograph', {
 
126
            'cleanup':groupcompress.cleanup_pack_group,
 
127
            'factory':groupcompress.make_pack_factory(False, False, 1),
 
128
            'graph': False,
 
129
            'key_length':1,
 
130
            'support_partial_insertion':False,
 
131
            }),
125
132
        ]
126
133
    len_two_scenarios = [
127
134
        ('weave-prefix', {
146
153
            'key_length':2,
147
154
            'support_partial_insertion': True,
148
155
            }),
 
156
        ('groupcompress', {
 
157
            'cleanup':groupcompress.cleanup_pack_group,
 
158
            'factory':groupcompress.make_pack_factory(True, False, 1),
 
159
            'graph': True,
 
160
            'key_length':1,
 
161
            'support_partial_insertion':False,
 
162
            }),
149
163
        ]
150
164
    scenarios = len_one_scenarios + len_two_scenarios
151
165
    return multiply_tests(to_adapt, scenarios, result)