make_branch_and_memory_tree is not directly substitutable for make_branch_and_tree
Bug #574980 reported by
Andrew Bennetts
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Many tests that use make_branch_
Unfortunately, it is not a drop-in replacement. Specifically while this works:
tree = self.make_
tree.commit('a commit')
This does not:
tree = self.make_
tree.commit('a commit')
Instead, you have to add some ugly boilerplate:
tree = self.make_
tree.
tree.add([''], ['root-id'])
tree.commit('a commit')
tree.unlock()
That's a lot of lines to say "create a tree that has a commit."
tags: | added: test |
tags: |
added: selftest removed: test |
tags: | added: check-for-breezy |
To post a comment you must log in.
Have you seen TreeBuilder?