~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/merge.py

  • Committer: Martin Pool
  • Date: 2005-11-01 21:51:17 UTC
  • mfrom: (1185.16.147)
  • mto: (1185.33.49 bzr.dev)
  • mto: This revision was merged to the branch mainline in revision 1512.
  • Revision ID: mbp@sourcefrog.net-20051101215117-e7c33dde397b2350
[merge] main -> bzr.mbp.basic_io

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
                        rename(new_name, name)
112
112
                        self.this_tree.branch.rename_one(relpath, new_path)
113
113
                        assert self.this_tree.id2path(file_id) == relpath
114
 
                        self.this_tree._inventory = self.this_tree.branch.inventory
 
114
                        self.this_tree._inventory = self.this_tree.read_working_inventory()
115
115
                        assert self.this_tree.id2path(file_id) == new_path
116
116
        except OSError, e:
117
117
            if e.errno != errno.EEXIST and e.errno != errno.ENOTEMPTY:
523
523
                path = path[2:]
524
524
            adjust_ids.append((path, id))
525
525
        if len(adjust_ids) > 0:
526
 
            self.this_branch.set_inventory(self.regen_inventory(adjust_ids))
 
526
            self.this_branch.working_tree().set_inventory(self.regen_inventory(adjust_ids))
527
527
        conflicts = self.conflict_handler.conflicts
528
528
        self.conflict_handler.finalize()
529
529
        return conflicts
530
530
 
531
531
    def regen_inventory(self, new_entries):
532
 
        old_entries = self.this_branch.read_working_inventory()
 
532
        old_entries = self.this_branch.working_tree().read_working_inventory()
533
533
        new_inventory = {}
534
534
        by_path = {}
535
535
        new_entries_map = {}