/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 bzrlib/builtins.py

  • Committer: Robert Collins
  • Date: 2005-10-11 22:57:45 UTC
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051011225745-5c02a0cfc85b36d1
fixup the verbose-does-nothing for add - add a --quiet instead

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
    get added when you add a file in the directory.
180
180
    """
181
181
    takes_args = ['file*']
182
 
    takes_options = ['verbose', 'no-recurse']
 
182
    takes_options = ['no-recurse', 'quiet']
183
183
    
184
 
    def run(self, file_list, verbose=False, no_recurse=False):
185
 
        # verbose currently has no effect
186
 
        from bzrlib.add import smart_add, add_reporter_print
187
 
        smart_add(file_list, not no_recurse, add_reporter_print)
188
 
 
 
184
    def run(self, file_list, no_recurse=False, quiet=False):
 
185
        from bzrlib.add import smart_add, add_reporter_print, add_reporter_null
 
186
        if quiet:
 
187
            reporter = add_reporter_null
 
188
        else:
 
189
            reporter = add_reporter_print
 
190
        smart_add(file_list, not no_recurse, reporter)
189
191
 
190
192
 
191
193
class cmd_mkdir(Command):