/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/memorytree.py

  • Committer: John Arbash Meinel
  • Date: 2008-09-04 23:23:06 UTC
  • mto: (3697.7.4 1.7)
  • mto: This revision was merged to the branch mainline in revision 3748.
  • Revision ID: john@arbash-meinel.com-20080904232306-x03g8pgnwfiyiu8w
Use direct access to the inventory instead of path2id.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
    def rename_one(self, from_rel, to_rel):
108
108
        file_id = self.path2id(from_rel)
109
109
        to_dir, to_tail = os.path.split(to_rel)
110
 
        to_parent_id = self.path2id(to_dir)
 
110
        to_parent_id = self._inventory[file_id].parent_id
111
111
        self._file_transport.move(from_rel, to_rel)
112
112
        self._inventory.rename(file_id, to_parent_id, to_tail)
113
 
        
 
113
 
114
114
    def path_content_summary(self, path):
115
115
        """See Tree.path_content_summary."""
116
116
        id = self.path2id(path)