~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mutabletree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-11-10 02:40:48 UTC
  • mfrom: (5535.1.1 merge-2.2-into-devel)
  • Revision ID: pqm@pqm.ubuntu.com-20101110024048-b19eazmjae5jtgk0
(spiv) Merge lp:bzr/2.2, including fix towards #603395. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
545
545
                        this_ie = None
546
546
                    else:
547
547
                        this_ie = inv[this_id]
 
548
                        # Same as in _add_one below, if the inventory doesn't
 
549
                        # think this is a directory, update the inventory
 
550
                        if this_ie.kind != 'directory':
 
551
                            this_ie = inventory.make_entry('directory',
 
552
                                this_ie.name, this_ie.parent_id, this_id)
 
553
                            del inv[this_id]
 
554
                            inv.add(this_ie)
548
555
 
549
556
                for subf in sorted(os.listdir(abspath)):
550
557
                    # here we could use TreeDirectory rather than