At http://bzr.arbash-meinel.com/branches/bzr/brisbane/hack
------------------------------------------------------------
revno: 3819
revision-id: [email protected]
parent: [email protected]
committer: John Arbash Meinel <[email protected]>
branch nick: hack
timestamp: Tue 2008-12-23 15:58:38 -0600
message:
Autopack needs to handle that the chk index is now a graph.
=== modified file 'bzrlib/repofmt/pack_repo.py'
--- a/bzrlib/repofmt/pack_repo.py 2008-12-23 21:37:19 +0000
+++ b/bzrlib/repofmt/pack_repo.py 2008-12-23 21:58:38 +0000
@@ -885,14 +885,11 @@
'chk_index')
chk_nodes = self._index_contents(chk_indices, refs)
new_refs = set()
- def accumlate_refs(lines):
- # XXX: move to a generic location
- # Yay mismatch:
+ for line in self._copy_nodes_graph(chk_nodes, chk_index_map,
+ self.new_pack._writer, self.new_pack.chk_index, output_lines=True)
bytes = ''.join(lines)
node = chk_map._deserialise(bytes, ("unknown",))
new_refs.update(node.refs())
- self._copy_nodes(chk_nodes, chk_index_map, self.new_pack._writer,
- self.new_pack.chk_index, output_lines=accumlate_refs)
return new_refs
def _copy_nodes(self, nodes, index_map, writer, write_index,
--
bazaar-commits mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/bazaar-commits