Rev 3562: Use direct access to the inventory instead of path2id. in http://bzr.arbash-meinel.com/branches/bzr/1.7-dev/merge_lca_multi
John Arbash Meinel
john at arbash-meinel.com
Fri Sep 5 00:23:14 BST 2008
At http://bzr.arbash-meinel.com/branches/bzr/1.7-dev/merge_lca_multi
------------------------------------------------------------
revno: 3562
revision-id: john at arbash-meinel.com-20080904232306-x03g8pgnwfiyiu8w
parent: john at arbash-meinel.com-20080801180417-z3itgrfu0ai91mgq
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: merge_lca_multi
timestamp: Thu 2008-09-04 18:23:06 -0500
message:
Use direct access to the inventory instead of path2id.
-------------- next part --------------
=== modified file 'bzrlib/memorytree.py'
--- a/bzrlib/memorytree.py 2008-07-23 02:35:09 +0000
+++ b/bzrlib/memorytree.py 2008-09-04 23:23:06 +0000
@@ -107,10 +107,10 @@
def rename_one(self, from_rel, to_rel):
file_id = self.path2id(from_rel)
to_dir, to_tail = os.path.split(to_rel)
- to_parent_id = self.path2id(to_dir)
+ to_parent_id = self._inventory[file_id].parent_id
self._file_transport.move(from_rel, to_rel)
self._inventory.rename(file_id, to_parent_id, to_tail)
-
+
def path_content_summary(self, path):
"""See Tree.path_content_summary."""
id = self.path2id(path)
More information about the bazaar-commits
mailing list