242
242
_see_also = ['fast-import']
243
243
takes_args = ['source']
244
244
takes_options = ['verbose',
245
ListOption('includes', short_name='i', type=str,
246
help="Only include commits affecting these files."
245
ListOption('include_paths', short_name='i', type=str,
246
help="Only include commits affecting these paths."
247
247
" Directories should have a trailing /."
249
ListOption('excludes', short_name='x', type=str,
250
help="Exclude these files from commits."
249
ListOption('exclude_paths', short_name='x', type=str,
250
help="Exclude these paths from commits."
254
def run(self, source, verbose=False, includes=None, excludes=None):
254
def run(self, source, verbose=False, include_paths=None,
255
256
from bzrlib.plugins.fastimport.processors import filter_processor
257
'includes': includes,
258
'excludes': excludes,
258
'include_paths': include_paths,
259
'exclude_paths': exclude_paths,
260
261
return _run(source, filter_processor.FilterProcessor, None, params,