Comment 7 for bug 256409

Revision history for this message
Robert Collins (lifeless) wrote :

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')