~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/merge.py

Move rename_one from Branch to WorkingTree. (Robert Collins).

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
                    if file_id is not None:
115
115
                        new_path = self.this_tree.relpath(new_name)
116
116
                        rename(new_name, name)
117
 
                        self.this_tree.branch.rename_one(relpath, new_path)
118
 
                        assert self.this_tree.id2path(file_id) == relpath
119
 
                        self.this_tree._inventory = self.this_tree.read_working_inventory()
 
117
                        self.this_tree.rename_one(relpath, new_path)
120
118
                        assert self.this_tree.id2path(file_id) == new_path
121
119
        except OSError, e:
122
120
            if e.errno != errno.EEXIST and e.errno != errno.ENOTEMPTY: