/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/dirstate.py

  • Committer: Kent Gibson
  • Date: 2007-03-11 13:44:18 UTC
  • mfrom: (2334 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2350.
  • Revision ID: warthog618@gmail.com-20070311134418-nu57arul94zawbj4
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
420
420
        else:
421
421
            raise errors.BzrError('unknown kind %r' % kind)
422
422
        entry_index, present = self._find_entry_index(entry_key, block)
423
 
        assert not present, "basename %r already added" % basename
424
 
        block.insert(entry_index, entry_data)
 
423
        if not present:
 
424
            block.insert(entry_index, entry_data)
 
425
        else:
 
426
            assert block[entry_index][1][0][0] == 'a', " %r(%r) already added" % (basename, file_id)
 
427
            block[entry_index][1][0] = entry_data[1][0]
425
428
 
426
429
        if kind == 'directory':
427
430
           # insert a new dirblock