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

smart caching of serialised inventories

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
                    Option('count', type=int,
120
120
                        help="Import this many revisions then exit.",
121
121
                        ),
 
122
                    Option('inv-cache', type=int,
 
123
                        help="Number of inventories to cache.",
 
124
                        ),
122
125
                     ]
123
126
    aliases = []
124
127
    def run(self, source, verbose=False, info=None, trees=False,
125
 
        checkpoint=10000, count=-1):
 
128
        checkpoint=10000, count=-1, inv_cache=10):
126
129
        from bzrlib import bzrdir
127
130
        from bzrlib.plugins.fastimport.processors import generic_processor
128
131
        control, relpath = bzrdir.BzrDir.open_containing('.')
130
133
            'info': info,
131
134
            'trees': trees,
132
135
            'checkpoint': checkpoint,
133
 
            'count': count
 
136
            'count': count,
 
137
            'inv-cache': inv_cache,
134
138
            }
135
139
        return _run(source, generic_processor.GenericProcessor, control,
136
140
            params, verbose)