~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mutabletree.py

  • Committer: John Arbash Meinel
  • Date: 2010-11-05 20:54:32 UTC
  • mfrom: (5526 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5527.
  • Revision ID: john@arbash-meinel.com-20101105205432-rmyozu8sthyhmri8
Merge bzr.dev to resolve bzr-2.3.txt (aka NEWS)

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