~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/merge.py

  • Committer: Jelmer Vernooij
  • Date: 2005-11-04 17:26:05 UTC
  • mfrom: (1185.16.146)
  • mto: (1185.33.1)
  • mto: This revision was merged to the branch mainline in revision 1509.
  • Revision ID: jelmer@samba.org-20051104172605-9288f261492667fd
MergeĀ fromĀ Martin

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 = {}