~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_versionedfile.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-04-07 06:32:31 UTC
  • mfrom: (4241.6.6 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090407063231-wwssbcpv1p0p31jk
(robertc) Add new compressor groupcompress. (Robert Collins,
        John Arbash Meinel, Ian Clathworthy, Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
from bzrlib import (
28
28
    errors,
 
29
    groupcompress,
29
30
    knit as _mod_knit,
30
31
    osutils,
31
32
    progress,
120
121
            'key_length':1,
121
122
            'support_partial_insertion': False,
122
123
            }),
 
124
        ('groupcompress-nograph', {
 
125
            'cleanup':groupcompress.cleanup_pack_group,
 
126
            'factory':groupcompress.make_pack_factory(False, False, 1),
 
127
            'graph': False,
 
128
            'key_length':1,
 
129
            'support_partial_insertion':False,
 
130
            }),
123
131
        ]
124
132
    len_two_scenarios = [
125
133
        ('weave-prefix', {
144
152
            'key_length':2,
145
153
            'support_partial_insertion': True,
146
154
            }),
 
155
        ('groupcompress', {
 
156
            'cleanup':groupcompress.cleanup_pack_group,
 
157
            'factory':groupcompress.make_pack_factory(True, False, 1),
 
158
            'graph': True,
 
159
            'key_length':1,
 
160
            'support_partial_insertion':False,
 
161
            }),
147
162
        ]
148
163
    scenarios = len_one_scenarios + len_two_scenarios
149
164
    return multiply_tests(to_adapt, scenarios, result)
1647
1662
             'knit-ft', 'knit-delta', 'chunked', 'fulltext',
1648
1663
             'knit-annotated-ft-gz', 'knit-annotated-delta-gz', 'knit-ft-gz',
1649
1664
             'knit-delta-gz',
1650
 
             'knit-delta-closure', 'knit-delta-closure-ref'])
 
1665
             'knit-delta-closure', 'knit-delta-closure-ref',
 
1666
             'groupcompress-block', 'groupcompress-block-ref'])
1651
1667
 
1652
1668
    def capture_stream(self, f, entries, on_seen, parents):
1653
1669
        """Capture a stream for testing."""