~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-11 23:19:53 UTC
  • Revision ID: mbp@sourcefrog.net-20050311231953-73aeb3a131c3699a
format_date: handle revisions with no timezone offset

Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
        if isinstance(files, types.StringTypes):
301
301
            files = [files]
302
302
        
303
 
        tree = self.working_tree()
304
 
        inv = tree.inventory
 
303
        inv = self.read_working_inventory()
305
304
 
306
305
        # do this before any modifications
307
306
        for f in files:
310
309
                bailout("cannot remove unversioned file %s" % quotefn(f))
311
310
            mutter("remove inventory entry %s {%s}" % (quotefn(f), fid))
312
311
            if verbose:
313
 
                # having remove it, it must be either ignored or unknown
314
 
                if tree.is_ignored(f):
315
 
                    new_status = 'I'
316
 
                else:
317
 
                    new_status = '?'
318
 
                show_status(new_status, inv[fid].kind, quotefn(f))
 
312
                show_status('D', inv[fid].kind, quotefn(f))
319
313
            del inv[fid]
320
314
 
321
315
        self._write_inventory(inv)