Rev 3732: Fix a spot that was expecting nodes_by_key to always exist. in http://bzr.arbash-meinel.com/branches/bzr/1.8-dev/lighter_log_file
John Arbash Meinel
john at arbash-meinel.com
Sun Sep 21 15:45:58 BST 2008
At http://bzr.arbash-meinel.com/branches/bzr/1.8-dev/lighter_log_file
------------------------------------------------------------
revno: 3732
revision-id: john at arbash-meinel.com-20080921144541-ecgpqv1v1hy2x138
parent: john at arbash-meinel.com-20080921141555-r6npeijzl5ic1r6r
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lighter_log_file
timestamp: Sun 2008-09-21 09:45:41 -0500
message:
Fix a spot that was expecting nodes_by_key to always exist.
-------------- next part --------------
=== modified file 'bzrlib/index.py'
--- a/bzrlib/index.py 2008-09-19 01:30:23 +0000
+++ b/bzrlib/index.py 2008-09-21 14:45:41 +0000
@@ -579,6 +579,7 @@
else:
yield self, key, self._nodes[key]
return
+ nodes_by_key = self._get_nodes_by_key()
for key in keys:
# sanity check
if key[0] is None:
@@ -586,7 +587,7 @@
if len(key) != self._key_length:
raise errors.BadIndexKey(key)
# find what it refers to:
- key_dict = self._nodes_by_key
+ key_dict = nodes_by_key
elements = list(key)
# find the subdict whose contents should be returned.
try:
More information about the bazaar-commits
mailing list