I tried this, which is close to what revision 11 does, but it does not fail. I'm going to try more permutations.
Rob - if you can remember at all how you did the move - did you 'mkdir', 'mv', 'bzr mv', or did you have bzr do the move, etc.. it would be very helpful.
def test_add_directory_and_rename_into_bug_256409(self):
# https://bugs.launchpad.net/bzr/+bug/256409
# corrupt deltas generated at commit...
tree = self.make_branch_and_tree('.')
# create a basis tree self.build_tree(['src/', 'src/css.h']) tree.smart_add(['.']) tree.commit('first post')
# now a new dir and a rename self.build_tree(['cbd/']) tree.smart_add(['.']) tree.move(['src/css.h'], 'cbd')
tree = tree.bzrdir.open_workingtree() tree.commit('make and move') self.run_bzr('check')
I tried this, which is close to what revision 11 does, but it does not fail. I'm going to try more permutations.
Rob - if you can remember at all how you did the move - did you 'mkdir', 'mv', 'bzr mv', or did you have bzr do the move, etc.. it would be very helpful.
def test_add_ directory_ and_rename_ into_bug_ 256409( self): /bugs.launchpad .net/bzr/ +bug/256409 branch_ and_tree( '.')
self.build_ tree([' src/', 'src/css.h'])
tree.smart_ add(['. '])
tree.commit( 'first post')
self.build_ tree([' cbd/'])
tree.smart_ add(['. '])
tree.move( ['src/css. h'], 'cbd') open_workingtre e()
tree.commit( 'make and move')
self.run_ bzr('check' )
# https:/
# corrupt deltas generated at commit...
tree = self.make_
# create a basis tree
# now a new dir and a rename
tree = tree.bzrdir.