~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Martin Pool
  • Date: 2005-09-01 06:33:48 UTC
  • Revision ID: mbp@sourcefrog.net-20050901063348-e71d651642ab18ba
- clean up parameters to smart_add and smart_add_branch

- the two add callbacks aren't private to the module, so shouldn't
  have underscore-prefixed names.  call them 'add reporters' as a 
  less generic name aren't private to the module, so shouldn't
  have underscore-prefixed names.  call them 'add reporters' as a 
  less generic name

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
    takes_options = ['verbose', 'no-recurse']
152
152
    
153
153
    def run(self, file_list, verbose=False, no_recurse=False):
154
 
        from bzrlib.add import smart_add, _PrintAddCallback
155
 
        smart_add(file_list, verbose, not no_recurse,
156
 
                  callback=_PrintAddCallback)
 
154
        # verbose currently has no effect
 
155
        from bzrlib.add import smart_add, add_reporter_print
 
156
        smart_add(file_list, not no_recurse, add_reporter_print)
157
157
 
158
158
 
159
159