73
73
""" Benchmarks for the write_bundle library function. """
75
75
def _time_read_write(self):
77
76
branch, relpath = Branch.open_containing("a")
78
77
revision_history = branch.revision_history()
81
79
self.time(write_bundle, branch.repository, revision_history[-1],
82
80
NULL_REVISION, bundle_text)
85
82
target_tree = self.make_branch_and_tree('b')
87
83
bundle = self.time(read_bundle, bundle_text)
89
84
self.time(install_bundle, target_tree.branch.repository, bundle)
91
86
def test_few_files_small_tree_1_revision(self):