~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.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:
1240
1240
        return result
1241
1241
 
1242
1242
    @needs_write_lock
1243
 
    def remove(self, files, verbose=False):
 
1243
    def remove(self, files, verbose=False, to_file=None):
1244
1244
        """Remove nominated files from the working inventory..
1245
1245
 
1246
1246
        This does not remove their text.  This does not run on XXX on what? RBC
1275
1275
                    new_status = 'I'
1276
1276
                else:
1277
1277
                    new_status = '?'
1278
 
                show_status(new_status, inv[fid].kind, quotefn(f))
 
1278
                show_status(new_status, inv[fid].kind, quotefn(f), to_file=to_file)
1279
1279
            del inv[fid]
1280
1280
 
1281
1281
        self._write_inventory(inv)