~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Andrew Bennetts
  • Date: 2009-08-04 14:07:42 UTC
  • mto: This revision was merged to the branch mainline in revision 4608.
  • Revision ID: andrew.bennetts@canonical.com-20090804140742-elu5athah3e0s4uj
Fix deserialization of deletes in inventory deltas, don't give up on serialized deltas from a supports_tree_refs repo unless the delta contains tree refs, and experiment to add automatic_root param to branchbuilder.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2247
2247
        b = self.make_branch(relpath, format=format)
2248
2248
        return memorytree.MemoryTree.create_on_branch(b)
2249
2249
 
2250
 
    def make_branch_builder(self, relpath, format=None):
 
2250
    def make_branch_builder(self, relpath, format=None, automatic_root=False):
2251
2251
        branch = self.make_branch(relpath, format=format)
2252
 
        return branchbuilder.BranchBuilder(branch=branch)
 
2252
        return branchbuilder.BranchBuilder(
 
2253
            branch=branch, automatic_root=automatic_root)
2253
2254
 
2254
2255
    def overrideEnvironmentForTesting(self):
2255
2256
        os.environ['HOME'] = self.test_home_dir