/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__dirstate_helpers.py

  • Committer: Aaron Bentley
  • Date: 2009-03-11 03:07:31 UTC
  • mto: This revision was merged to the branch mainline in revision 4112.
  • Revision ID: aaron@aaronbentley.com-20090311030731-b9bnnv0qzbxqjk4d
Add tests for update_entry with tree references

Show diffs side-by-side

added added

removed removed

Lines of Context:
1020
1020
        self.assertEqual(dirstate.DirState.IN_MEMORY_UNMODIFIED,
1021
1021
                         state._dirblock_state)
1022
1022
 
 
1023
    def test_update_entry_tree_reference(self):
 
1024
        self.set_update_entry()
 
1025
        state = test_dirstate.InstrumentedDirState.initialize('dirstate')
 
1026
        self.addCleanup(state.unlock)
 
1027
        state.add('r', 'r-id', 'tree-reference', None, '')
 
1028
        self.build_tree(['r/'])
 
1029
        entry = state._get_entry(0, path_utf8='r')
 
1030
        self.do_update_entry(state, entry, 'r')
 
1031
        entry = state._get_entry(0, path_utf8='r')
 
1032
        self.assertEqual('t', entry[1][0][0])
 
1033
 
1023
1034
    def create_and_test_file(self, state, entry):
1024
1035
        """Create a file at 'a' and verify the state finds it during update.
1025
1036