/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

  • Committer: Ian Clatworthy
  • Date: 2009-02-17 02:59:58 UTC
  • mto: (0.64.116 trunk)
  • mto: This revision was merged to the branch mainline in revision 6631.
  • Revision ID: ian.clatworthy@canonical.com-20090217025958-ayczubv0vepppegi
add _paths to option & params names as other types of filtering may be added later

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 /."
248
248
                        ),
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."
251
251
                        ),
252
252
                     ]
253
253
    aliases = []
254
 
    def run(self, source, verbose=False, includes=None, excludes=None):
 
254
    def run(self, source, verbose=False, include_paths=None,
 
255
        exclude_paths=None):
255
256
        from bzrlib.plugins.fastimport.processors import filter_processor
256
257
        params = {
257
 
            'includes': includes,
258
 
            'excludes': excludes,
 
258
            'include_paths': include_paths,
 
259
            'exclude_paths': exclude_paths,
259
260
            }
260
261
        return _run(source, filter_processor.FilterProcessor, None, params,
261
262
            verbose)