~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Wouter van Heyst
  • Date: 2006-06-07 15:18:15 UTC
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: larstiq@larstiq.dyndns.org-20060607151815-78c1f021917b0e26
WorkingTree.remove takes an optional output file
bzr remove doesn't fail if it can't print the exact filename

Show diffs side-by-side

added added

removed removed

Lines of Context:
840
840
    takes_args = ['file*']
841
841
    takes_options = ['verbose', Option('new', help='remove newly-added files')]
842
842
    aliases = ['rm']
 
843
    encoding_type = 'replace'
843
844
    
844
845
    def run(self, file_list, verbose=False, new=False):
845
846
        tree, file_list = tree_files(file_list)
854
855
            file_list = sorted([f[0] for f in added[0]], reverse=True)
855
856
            if len(file_list) == 0:
856
857
                raise BzrCommandError('No matching files.')
857
 
        tree.remove(file_list, verbose=verbose)
 
858
        tree.remove(file_list, verbose=verbose, to_file=self.outf)
858
859
 
859
860
 
860
861
class cmd_file_id(Command):